src/Util/JsonArray.php
public function getEntries($path)
    {
        $entries = $this->get($path);
        $result  = [];
        $prefix  = trim($path, '/');
        if (strlen($prefix)) {
            $prefix .= '/';
        }
        if (is_array($entries)) {
            foreach (array_keys($entries) as $key) {
                $result[] = $prefix . $this->escape($key);
            }
        }

        return $result;
    }
public function getEntries($path)
    {
        $entries = $this->get($path);
        $result  = [];
        $prefix  = trim($path, '/');
        if (strlen($prefix)) {
            $prefix .= '/';
        }
        if (is_array($entries)) {
            foreach (array_keys($entries) as $key) {
                $result[] = $prefix . $this->escape($key);
            }
        }

        return $result;
    }
public function getEntries ( $ path ) { $ entries = $ this -> get ( $ path ) ; $ result = [ ] ; $ prefix = trim ( $ path , '/' ) ; if ( strlen ( $ prefix ) ) { $ prefix .= '/' ; } if ( is_array ( $ entries ) ) { foreach ( array_keys ( $ entries ) as $ key ) { $ result [ ] = $ prefix . $ this -> escape ( $ key ) ; } } return $ result ; }
Retrieve the contained keys at the given path.

@param string $path The sub path to be examined.

@return string[]
Retrieve the contained keys at the given path .