Commit b6ba0de0 authored by Taylor Otwell's avatar Taylor Otwell

Improve Arr class documentation.

parent 26dcc276
...@@ -6,7 +6,16 @@ class Arr { ...@@ -6,7 +6,16 @@ class Arr {
* Get an item from an array. * Get an item from an array.
* *
* If the specified key is null, the entire array will be returned. The array may * If the specified key is null, the entire array will be returned. The array may
* also be accessed using JavaScript "dot" style notation. * also be accessed using JavaScript "dot" style notation. Retrieving items nested
* in multiple arrays is also supported.
*
* <code>
* // Returns "taylor"
* $item = Arr::get(array('name' => 'taylor'), 'name', $default);
*
* // Returns "taylor"
* $item = Arr::get(array('name' => array('is' => 'taylor')), 'name.is');
* </code>
* *
* @param array $array * @param array $array
* @param string $key * @param string $key
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment