urlencode.php
Table of Contents
Functions
- urlencode() : string
- Encodes the specified URI according to RFC 3986.
Functions
urlencode()
Encodes the specified URI according to RFC 3986.
urlencode(string $uri) : string
This function applies PHP's built-in urlencode() and then decodes certain reserved characters back to their literal forms, matching RFC 3986 requirements.
Parameters
- $uri : string
-
The URI string to encode.
Tags
Return values
string —The RFC 3986 compliant encoded URI string.