PHP - mb_strtolower
Trieda
Metóda - mb_strtolower
(PHP 4 >= 4.3.0, PHP 5, PHP 7)
The mb_strtolower() function converts all characters in a string
to lowercase (even those with diacritics). So it is the opposite of the
mb_strtoupper() function.
Procedurálne
- function mb_strtolower (string $str, string $encoding = mb_internal_encoding()) : string
Parametre
| Názov | Dátový typ | Predvolená hodnota | Popis |
|---|---|---|---|
| $str | string | The string to be converted. | |
| $encoding | string | mb_internal_encoding() | In the additional optional parameter, we can set the encoding. |
Mávratovej hodnoty
Vracia: string
The string with lowercase characters.
Príklady
<?php
$s = 'This IS a SIMPLE string.';
echo mb_strtolower($s);
Súvisiace manuály
- function mb_strtoupper (string $str, string $encoding = mb_internal_encoding()) : string
- function strtolower (string $string) : string
