PHP - strtolower
Trieda
Metóda - strtolower
(PHP 4, PHP 5, PHP 7)
Returns a string where all the alphabetic characters are converted to lowercase.
**Note: ** The function is binary-safe. That means we can pass it binary data as well as text and it'll handle it correctly.
Procedurálne
- function strtolower (string $string) : string
Parametre
| Názov | Dátový typ | Predvolená hodnota | Popis |
|---|---|---|---|
| $string | string | Vstupní řetězec. |
Mávratovej hodnoty
Vracia: string
Returns the string in lowercase characters.
Príklady
<?php
$uppercase = "UPPERCASE";
$lowercase = strtolower($uppercase);
echo $lowercase;
Súvisiace manuály
- function mb_strtolower (string $str, string $encoding = mb_internal_encoding()) : string
- function ucfirst (string $str) : string
- function ucwords (string $str, string $delimiters = \t\r\n\f\v) : string
