public function findIndexInArray($indexname) {
        foreach ($this->indexes as $i => $index) {
            if ($indexname == $index->getName()) {
                return $i;
            }
        }
        return null;
    }
public function findIndexInArray($indexname) {
        foreach ($this->indexes as $i => $index) {
            if ($indexname == $index->getName()) {
                return $i;
            }
        }
        return null;
    }
public function findIndexInArray ( $ indexname ) { foreach ( $ this -> indexes as $ i => $ index ) { if ( $ indexname == $ index -> getName ( ) ) { return $ i ; } } return null ; }
Returns the position of one index in the array.
@param string $indexname
@return int|null index of the index, or null if not found.
Returns the position of one index in the array .