public function findTableInArray($tablename) {
        foreach ($this->tables as $i => $table) {
            if ($tablename == $table->getName()) {
                return $i;
            }
        }
        return null;
    }
public function findTableInArray($tablename) {
        foreach ($this->tables as $i => $table) {
            if ($tablename == $table->getName()) {
                return $i;
            }
        }
        return null;
    }
public function findTableInArray ( $ tablename ) { foreach ( $ this -> tables as $ i => $ table ) { if ( $ tablename == $ table -> getName ( ) ) { return $ i ; } } return null ; }
Returns the position of one table in the array.
@param string $tablename
@return mixed
Returns the position of one table in the array .