Commit db5c61d5 authored by Taylor Otwell's avatar Taylor Otwell

Added code to return the entire array to Arr::dot.

parent dfbd8e79
......@@ -37,6 +37,11 @@ class Arr {
*/
public static function dot($array, $key, $default = null)
{
if (is_null($key))
{
return $array;
}
foreach (explode('.', $key) as $segment)
{
if ( ! isset($array[$segment]))
......
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