Unset an offset.

/**
 * Unset an offset.
 *
 * @param mixed $offset The offset to unset.
 */
public function offsetUnset($offset): void

Examples

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

$arrays->offsetUnset('items.foo');
unset($arrays['items.bar']);

Getting Started

Methods