public function indexOfKey($key)
    {
        if($this->isKeycacheInvalid())
        {
            $this->regenerateKeyCache();
        }

        if(isset($this->__keycache[$key]))
        {
            return $this->__keycache[$key];
        }

        return -1;
    }
public function indexOfKey($key)
    {
        if($this->isKeycacheInvalid())
        {
            $this->regenerateKeyCache();
        }

        if(isset($this->__keycache[$key]))
        {
            return $this->__keycache[$key];
        }

        return -1;
    }
public function indexOfKey ( $ key ) { if ( $ this -> isKeycacheInvalid ( ) ) { $ this -> regenerateKeyCache ( ) ; } if ( isset ( $ this -> __keycache [ $ key ] ) ) { return $ this -> __keycache [ $ key ] ; } return - 1 ; }
Index of key
@param mixed $key
@return int
Index of key