From b6ba0de0bd41a63e03587d13fb86a1e06f8fdb19 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 9 Aug 2011 14:31:57 -0500 Subject: [PATCH] Improve Arr class documentation. --- system/arr.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/system/arr.php b/system/arr.php index 199e415a..671e356e 100644 --- a/system/arr.php +++ b/system/arr.php @@ -6,7 +6,16 @@ class Arr { * Get an item from an array. * * 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. + * + * + * // Returns "taylor" + * $item = Arr::get(array('name' => 'taylor'), 'name', $default); + * + * // Returns "taylor" + * $item = Arr::get(array('name' => array('is' => 'taylor')), 'name.is'); + * * * @param array $array * @param string $key