nspl\ds\DefaultArray::offsetGet PHP 메소드

offsetGet() 공개 메소드

(PHP 5 >= 5.0.0)
Offset to retrieve
public offsetGet ( integer $index ) : mixed
$index integer

The offset to retrieve.

리턴 mixed Can return all value types.
    public function &offsetGet($index)
    {
        if (!$this->offsetExists($index)) {
            $this->offsetSet($index, $this->getDefault());
        }
        return parent::offsetGet($index);
    }