UriTemplateInterface
in
Expands URI templates using an array of variables
Tags
Table of Contents
Methods
- expand() : string
- Expand the URI template using the supplied variables
Methods
expand()
Expand the URI template using the supplied variables
public
expand(string $template, array<string|int, mixed> $variables) : string
Parameters
- $template : string
-
URI Template to expand
- $variables : array<string|int, mixed>
-
Variables to use with the expansion
Return values
string —Returns the expanded template