public function get($path, $default = null)
    {
        $array = $this->getValues();

        if (!empty($path)) {
            $keys = $this->explode($path);

            foreach ($keys as $key) {
                if (isset($array[$key])) {
                    $array = $array[$key];
                } else {
                    return $default;
                }
            }
        }

        return $array;
    }
public function get($path, $default = null)
    {
        $array = $this->getValues();

        if (!empty($path)) {
            $keys = $this->explode($path);

            foreach ($keys as $key) {
                if (isset($array[$key])) {
                    $array = $array[$key];
                } else {
                    return $default;
                }
            }
        }

        return $array;
    }
public function get ( $ path , $ default = null ) { $ array = $ this -> getValues ( ) ; if ( ! empty ( $ path ) ) { $ keys = $ this -> explode ( $ path ) ; foreach ( $ keys as $ key ) { if ( isset ( $ array [ $ key ] ) ) { $ array = $ array [ $ key ] ; } else { return $ default ; } } } return $ array ; }
Returns value by path.

@param string $path    Path to return value for.
@param string $default Default value to return if path could no be resolved.

@author Anton Medvedev <anton (at) elfet (dot) ru>

@return mixed Value by path, or default value
Returns value by path .