Prado\Web\THttpRequest::offsetGet PHP Method

offsetGet() public method

This method is required by the interface \ArrayAccess.
public offsetGet ( $offset ) : mixed
return mixed the element at the offset, null if no element is found at the offset
    public function offsetGet($offset)
    {
        return $this->itemAt($offset);
    }

Usage Example

Ejemplo n.º 1
0
 public function testOffsetSet()
 {
     $request = new THttpRequest();
     $request->init(null);
     $request->offsetSet(0, 'test');
     // should not exists
     self::assertEquals('test', $request->offsetGet(0));
 }