public function get($path, $default=Null)
    {
        $current = $this->data;
        $p = strtok($path, '.');

        while ($p !== false) {
            if (!isset($current[$p])) {
                return is_null($default) ? $this->getDefault($path) : $default;
            }
            $current = $current[$p];
            $p = strtok('.');
        }

        return $current;
    }
public function get($path, $default=Null)
    {
        $current = $this->data;
        $p = strtok($path, '.');

        while ($p !== false) {
            if (!isset($current[$p])) {
                return is_null($default) ? $this->getDefault($path) : $default;
            }
            $current = $current[$p];
            $p = strtok('.');
        }

        return $current;
    }
public function get ( $ path , $ default = Null ) { $ current = $ this -> data ; $ p = strtok ( $ path , '.' ) ; while ( $ p !== false ) { if ( ! isset ( $ current [ $ p ] ) ) { return is_null ( $ default ) ? $ this -> getDefault ( $ path ) : $ default ; } $ current = $ current [ $ p ] ; $ p = strtok ( '.' ) ; } return $ current ; }
Retrieve a given value from a deeply nested array using "dot" notation

@param  string $path     The dot notation value to search for (eg, path.to.key)
Retrieve a given value from a deeply nested array using dot notation