protected function _getRealOffset($offset)
    {
        /* Optimize: check for base $offset in array first. */
        if (parent::offsetExists($offset)) {
            return $offset;
        }

        foreach (array_keys($this->getArrayCopy()) as $key) {
            if (strcasecmp($key, $offset) === 0) {
                return $key;
            }
        }

        return null;
    }
protected function _getRealOffset($offset)
    {
        /* Optimize: check for base $offset in array first. */
        if (parent::offsetExists($offset)) {
            return $offset;
        }

        foreach (array_keys($this->getArrayCopy()) as $key) {
            if (strcasecmp($key, $offset) === 0) {
                return $key;
            }
        }

        return null;
    }
protected function _getRealOffset ( $ offset ) { /* Optimize: check for base $offset in array first. */ if ( parent :: offsetExists ( $ offset ) ) { return $ offset ; } foreach ( array_keys ( $ this -> getArrayCopy ( ) ) as $ key ) { if ( strcasecmp ( $ key , $ offset ) === 0 ) { return $ key ; } } return null ; }
Determines the actual array offset given the input offset.

@param string $offset  Input offset.

@return string  Real offset or null.
Determines the actual array offset given the input offset .