UTILITY

forget()

Remove a nested dot-notation array value.

Signature

bool forget(array &$array, string $path)

Example

forget($data, 'user.token');

Available from: 1.5.0

Reference navigation

Previous: flatten()

Next: get()

Back to utilities