NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Interface UriTemplateInterface

Expands URI templates using an array of variables

### Direct known implementers

`Guzzle\Parser\UriTemplate\PeclUriTemplate`, `Guzzle\Parser\UriTemplate\UriTemplate`

Namespace: Guzzle\Parser\UriTemplate
Link: http://tools.ietf.org/html/rfc6570
Located at Guzzle/Parser/UriTemplate/UriTemplateInterface.php

## Methods summary

- `public` `expand ( string $template, array $variables )`

  Expand the URI template using the supplied variables

## Methods detail

# `public string`
`expand( string $template, array $variables )`

Expand the URI template using the supplied variables

#### Parameters

$template
  `string`
  $template URI Template to expand
$variables
  `array`
  $variables Variables to use with the expansion

#### Returns

`string`
Returns the expanded template

### Magic methods summary