NOVINKA: Najžiadanejšie rekvalifikačné kurzy teraz s 50% zľavou + kurz AI ZADARMO. Nečakaj, táto ponuka dlho nevydrží! Zisti viac:
Funkce, kterou se snažíš použít je dostupná pouze pro registrované uživatele. Buďto se přihlas nebo si zdarma vytvoř nový účet.

PHP - mb_strtolower

Trieda

Koreň \ Bez triedy

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ázovDátový typPredvolená hodnotaPopis
$strstring

The string to be converted.

$encodingstring 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
      Aktivity