Function __global->normalise_idn_url
Definitions
sources/urls.php
- Take a URL, which may have a utf-8 domain name, and normalise it to normal IDN.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $url | URLPATH | No | No | required parameter | N/A | N/A | The URL |
Returns
- The normalised URL
- Type: URLPATH
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Take a URL, which may have a utf-8 domain name, and normalise it to normal IDN.
*
* @param URLPATH $url The URL
* @return URLPATH The normalised URL
*/
function normalise_idn_url(string $url) : string
* Take a URL, which may have a utf-8 domain name, and normalise it to normal IDN.
*
* @param URLPATH $url The URL
* @return URLPATH The normalised URL
*/
function normalise_idn_url(string $url) : string

