public function getMatch($uri)
    {
        $expression = $this->pattern->getExpression();
        $matches = [];

        if (preg_match($expression, $uri, $matches) === 0) {
            return false;
        }

        $matches = $this->cleanMatches($matches);
        $matches = $this->removeNoise($matches);
        return $matches + $this->defaults;
    }
public function getMatch($uri)
    {
        $expression = $this->pattern->getExpression();
        $matches = [];

        if (preg_match($expression, $uri, $matches) === 0) {
            return false;
        }

        $matches = $this->cleanMatches($matches);
        $matches = $this->removeNoise($matches);
        return $matches + $this->defaults;
    }
public function getMatch ( $ uri ) { $ expression = $ this -> pattern -> getExpression ( ) ; $ matches = [ ] ; if ( preg_match ( $ expression , $ uri , $ matches ) === 0 ) { return false ; } $ matches = $ this -> cleanMatches ( $ matches ) ; $ matches = $ this -> removeNoise ( $ matches ) ; return $ matches + $ this -> defaults ; }
Method attempts to apply the generated regexp to the URI
and, if successful, returns a list of parsed parameters.

@param string $uri

@return array|false
Method attempts to apply the generated regexp to the URI and if successful returns a list of parsed parameters .