Function array_get
Get an item from an array using "dot" notation.
// Get the $array['user']['name'] value from the array $name = array_get($array, 'user.name'); // Return a default from if the specified item doesn't exist $name = array_get($array, 'user.name', 'Taylor');
Located at laravel/helpers.php
array |
$array |
|
string |
$key |
|
mixed |
$default = null |
mixed
|