Function array_forget
Remove an array item from a given array using "dot" notation.
// Remove the $array['user']['name'] item from the array array_forget($array, 'user.name'); // Remove the $array['user']['name']['first'] item from the array array_forget($array, 'user.name.first');
Located at laravel/helpers.php
array |
& $array |
|
string |
$key |