PHP - urldecode
Trieda
Metóda - urldecode
(PHP 4, PHP 5, PHP 7)
Decodes a string encoded in the URL-friendly form into the normal string representation.
Note: Do not use this function on $_GET or
$_REQUEST, they're already decoded.
Procedurálne
- function urldecode (string $str) : string
Parametre
| Názov | Dátový typ | Predvolená hodnota | Popis |
|---|---|---|---|
| $str | string | The string which will be decoded. |
Mávratovej hodnoty
Vracia: string
Returns the string decoded to the normal form.
Príklady
<?php
echo urldecode("http%3A%2F%2Fict.social%2F%3Fx%3D1%26y%3D2") . "\n";
Súvisiace manuály
- function urlencode (string $str) : string
