src/Zicht/Bundle/UrlBundle/Url/Params/UriParser.php
public function parseUri($uri)
    {
        $ret = [];
        foreach (explode($this->seperators['param'], $uri) as $params) {
            if ($params) {
                @list($key, $values) = explode($this->seperators['key_value'], $params, 2);
                $external = $key;
                if ($internal = $this->translateKeyInput($key)) {
                    $key = $internal;
                }
                $ret[$key] = [];
                foreach (explode($this->seperators['value'], $values) as $value) {
                    if (strlen($value) > 0) {
                        if ($internal = $this->translateValueInput($external, $value)) {
                            $value = $internal;
                        }
                        $ret[$key][] = urldecode($value);
                    }
                }
            }
        }

        return $ret;
    }
public function parseUri($uri)
    {
        $ret = [];
        foreach (explode($this->seperators['param'], $uri) as $params) {
            if ($params) {
                @list($key, $values) = explode($this->seperators['key_value'], $params, 2);
                $external = $key;
                if ($internal = $this->translateKeyInput($key)) {
                    $key = $internal;
                }
                $ret[$key] = [];
                foreach (explode($this->seperators['value'], $values) as $value) {
                    if (strlen($value) > 0) {
                        if ($internal = $this->translateValueInput($external, $value)) {
                            $value = $internal;
                        }
                        $ret[$key][] = urldecode($value);
                    }
                }
            }
        }

        return $ret;
    }
public function parseUri ( $ uri ) { $ ret = [ ] ; foreach ( explode ( $ this -> seperators [ 'param' ] , $ uri ) as $ params ) { if ( $ params ) { @ list ( $ key , $ values ) = explode ( $ this -> seperators [ 'key_value' ] , $ params , 2 ) ; $ external = $ key ; if ( $ internal = $ this -> translateKeyInput ( $ key ) ) { $ key = $ internal ; } $ ret [ $ key ] = [ ] ; foreach ( explode ( $ this -> seperators [ 'value' ] , $ values ) as $ value ) { if ( strlen ( $ value ) > 0 ) { if ( $ internal = $ this -> translateValueInput ( $ external , $ value ) ) { $ value = $ internal ; } $ ret [ $ key ] [ ] = urldecode ( $ value ) ; } } } } return $ ret ; }
Parse the uri

@param string $uri
@return array
Parse the uri