PHP - utf8_encode
Trieda
Metóda - utf8_encode
(PHP 4, PHP 5, PHP 7)
Converts a string from ISO-8859-1 to the UTF-8 representation.
Procedurálne
- function utf8_encode (string $data) : string
Parametre
| Názov | Dátový typ | Predvolená hodnota | Popis |
|---|---|---|---|
| $data | string | The input string in the ISO-8859-1 representation. |
Mávratovej hodnoty
Vracia: string
Returns the UTF-8 representation of the input ISO-8859-1 string.
Príklady
<?php
echo utf8_encode('čáp');
Súvisiace manuály
- function utf8_decode (string $data) : string
