NOVINKA: Najžiadanejšie rekvalifikačné kurzy teraz s 50% zľavou + kurz AI ZADARMO. Nečakaj, táto ponuka dlho nevydrží! Zisti viac:

PHP - strtolower

Trieda

Koreň \ Bez triedy

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

Parametre

NázovDátový typPredvolená hodnotaPopis
$stringstring

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
      Aktivity