PHP - utf8_decode
Trieda
Metóda - utf8_decode
(PHP 4, PHP 5, PHP 7)
Converts data from UTF-8 to the ISO-8859-1 representation. Non valid UTF-8
bytes or UTF-8 characters which are not defined in ISO-8859-1 (above U+00FF) are
replaced with question marks (?).
Procedurálne
- function utf8_decode (string $data) : string
Parametre
| Názov | Dátový typ | Predvolená hodnota | Popis |
|---|---|---|---|
| $data | string | The input string in the UTF-8 representation. |
Mávratovej hodnoty
Vracia: string
Returns the ISO-8859-1 representation of the input UTF-8 data.
Príklady
<?php
echo utf8_decode('Äáp') . "\n";
Súvisiace manuály
- function utf8_encode (string $data) : string
