Parse the offset definition value.

@param mixed $offset Raw offset value.

@return mixed
187036
private function parseOffset($offset)
    {
        if ($offset === 'null') {
            $offset = 0;
        } elseif (is_numeric($offset)) {
            $offset = (int) $offset;
        }

        return $offset;
    }
323304
public function offsetGet($offset)
    {
        if (!is_int($offset)) {
            $offset = array_search($offset, self::$reverseLookup);
        }

        return self::$references[$offset];
    }
1013450
protected function offsetIsAllowed($offset)
    {
        return (is_null($offset) || (((string)(int)$offset) == $offset) || is_int($offset));
    }
1275636
public function offsetGet($offset)
    {
        $field = $this->dataField;

        if (empty($this->{$field}[$offset])) {
            return null;
        }

        return $this->{$field}[$offset];
    }
1345021
private function _parseAttrTypeAndValue(int &$offset): array
    {
        $idx = $offset;
        $type = $this->_parseAttrType($idx);
        $this->_skipWs($idx);
        if ($idx >= $this->_len || "=" != $this->_dn[$idx++]) {
            throw new \UnexpectedValueException("Invalid type and value pair.");
        }
        $this->_skipWs($idx);
        // hexstring
        if ($idx < $this->_len && "#" == $this->_dn[$idx]) {
            ++$idx;
            $data = $this->_parseAttrHexValue($idx);
            try {
                $value = Element::fromDER($data);
            } catch (DecodeException $e) {
                throw new \UnexpectedValueException(
                    "Invalid DER encoding from hexstring.", 0, $e);
            }
        } else {
            $value = $this->_parseAttrStringValue($idx);
        }
        $offset = $idx;
        return array($type, $value);
    }
598341
public function offsetGet($offset)
    {
        if (!is_string($offset)) {
            throw new \Erebot\InvalidValueException('Not a valid name');
        }

        $seen   = array();
        $name   = strtoupper($offset);
        while (!in_array($name, $seen)) {
            $seen[] = $name;

            if (!$this->reflector->hasConstant($name)) {
                return null;
            }
            $constValue = $this->reflector->getConstant($name);

            if (is_int($constValue) &&
                $constValue > 0 &&
                $constValue <= 999) {
                return $constValue;
            }

            if (is_string($constValue)) {
                $name = strtoupper($constValue);
                continue;
            }

            return null;
        }
        throw new \Erebot\InvalidValueException('Loop detected');
    }
909965
public function & offsetGet( $offset )
	{
		if( ! isset($this->items[$offset]) )
		{
			$value = null;
		}

		else if( is_array($this->items[$offset]) )
		{
			return $this->items[$offset];
		}

		else
		{
			$value = $this->items[$offset];
		}

		return $value;
	}
986086
public function offsetGet($offset)
    {
        if (is_array($this->{$offset})) {
            return implode(',', $this->{$offset});
        }

        return $this->{$offset};
    }
947409
public function offsetGet($offset)
    {
        return isset($this->constraints[$offset]) ? $this->constraints[$offset] : null;
    }
45893
public function offsetGet($offset)
    {
        return isset($this->lines[$offset]) ? $this->lines[$offset] : null;
    }
79732
function offsetGet($offset)
    {
        if (empty($this->attributes[$offset])) {
            if ($this->strictScheme) {
                throw new UnexpectedValueException(
                    "Strict Scheme: Attribute $offset is not defined."
                );
            }
            $this->attributes[$offset] = new Attribute($offset, $this);
        }
        return $this->attributes[$offset];
    }
89447
public function offsetGet($offset)
    {
        $getter = 'get' . ucfirst($offset);

        if (\method_exists($this, $getter)) {
            $this->$getter();
        }

        return null;
    }
1138415
public function offsetGet($offset)
    {
        foreach ($this->observer as $observer) {
            if (strtolower($observer->getName()) === strtolower($offset)) {
                return $observer;
            }
        }

        return;
    }
500627
public function offsetGet($offset)
    {
        foreach (array_merge($this->getXmlElements(), $this->getXmlAttributes()) as $attr) {
            if (strtolower($attr) == strtolower($offset)) {
                return \array_get($this->values, $attr);
            }
        }
        return null;
    }
53349
public function offsetGet($offset) {
    if (is_string($offset)) {
      return $this->get($offset);
    }
    return parent::offsetGet($offset);
  }
135227
public function offsetAfter ($offset) {
		return ($offset < $this->_length) ? static::Substring($this->_string, $offset) : static::EMPTY_CHAR;
	}
841156
public function offsetGet($offset)
    {
        return isset($this->dataPlaceHolder[$offset]) ? $this->dataPlaceHolder[$offset] : null;
    }