You are here

private function Uri::urlEncodeChar in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-diactoros/src/Uri.php \Zend\Diactoros\Uri::urlEncodeChar()

URL encode a character returned by a regex.

Parameters

array $matches:

Return value

string

File

vendor/zendframework/zend-diactoros/src/Uri.php, line 655

Class

Uri
Implementation of Psr\Http\UriInterface.

Namespace

Zend\Diactoros

Code

private function urlEncodeChar(array $matches) {
  return rawurlencode($matches[0]);
}