Offset to retrieve.

/**
 * Offset to retrieve.
 *
 * @param mixed $offset The offset to retrieve.
 */
public function offsetGet($offset)

Examples

$arrays = Arrays::create(['items' => ['foo' => 'Foo', 'bar' => 'Bar']]);

print_r($arrays->offsetGet('items.foo'));
print_r($arrays['items.bar']);

The above example will output:

Foo
Bar

Getting Started

Methods