public function get($pointer, $array)
    {
        $pointerArray = $this->parser->parse($pointer);

        $current = $array;
        foreach ($pointerArray as $key) {
            if (!is_array($current) || !array_key_exists($key, $current)) {
                throw new Exception\NoneExistentValue('references none existent value.');
            }

            $current = $current[$key];
        }

        return $current;
    }
public function get($pointer, $array)
    {
        $pointerArray = $this->parser->parse($pointer);

        $current = $array;
        foreach ($pointerArray as $key) {
            if (!is_array($current) || !array_key_exists($key, $current)) {
                throw new Exception\NoneExistentValue('references none existent value.');
            }

            $current = $current[$key];
        }

        return $current;
    }
public function get ( $ pointer , $ array ) { $ pointerArray = $ this -> parser -> parse ( $ pointer ) ; $ current = $ array ; foreach ( $ pointerArray as $ key ) { if ( ! is_array ( $ current ) || ! array_key_exists ( $ key , $ current ) ) { throw new Exception \ NoneExistentValue ( 'references none existent value.' ) ; } $ current = $ current [ $ key ] ; } return $ current ; }
get pointed value

@param string $pointer JSON Pointer string
@param array  $array   target array

@throws Exception\SyntaxError
@throws Exception\NoneExistentValue
get pointed value