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