public function get($key, $default = null)
    {
        $resource = $this->getAll();

        $keys = explode('.', $key);
        foreach ($keys as $key) {
            if (!isset($resource[$key])) {
                $resource = $default;
                break;
            }
            $resource = &$resource[$key];
        }

        return $resource;
    }
public function get($key, $default = null)
    {
        $resource = $this->getAll();

        $keys = explode('.', $key);
        foreach ($keys as $key) {
            if (!isset($resource[$key])) {
                $resource = $default;
                break;
            }
            $resource = &$resource[$key];
        }

        return $resource;
    }
public function get ( $ key , $ default = null ) { $ resource = $ this -> getAll ( ) ; $ keys = explode ( '.' , $ key ) ; foreach ( $ keys as $ key ) { if ( ! isset ( $ resource [ $ key ] ) ) { $ resource = $ default ; break ; } $ resource = & $ resource [ $ key ] ; } return $ resource ; }
Return specific value by key if resource set. If not found, return default.

$getSet->get("one.two.three", "value") would return $resource["one"]["two"]["three"] or "value";

@param string     $key
@param mixed|null $default

@return mixed|null
Return specific value by key if resource set . If not found return default .