If the URL matches the route parameters and settings, then
return a generated string URL. If the URL doesn't match the route parameters, false will be returned.
This method handles the reverse routing or conversion of URL arrays into string URLs.
public match ( array $url, array $context = [] ) : string | false | ||
$url | array | An array of parameters to check matching with. |
$context | array | An array of the current request context. Contains information such as the current host, scheme, port, base directory and other url params. |
Результат | string | false | Either a string URL for the parameters if they match or false. |