CKTIS / PHP
strtolower()
Converte in minuscolo tutte le lettere ASCII della stringa conservando gli altri byte.
Versione: PHP 8.4; repository runtime, production runtime not attested
Sintassi
strtolower(string $string): stringConverte in minuscolo tutte le lettere ASCII della stringa conservando gli altri byte. Da PHP 8.2 non dipende dalle impostazioni locali. Le maiuscole accentate UTF-8 restano maiuscole. Per Unicode usa una conversione multibyte.
Firma
strtolower(string $string): string
Output dell’esempio
["abc-12","École"]
Esempi
<?php
echo json_encode([strtolower("ABC-12"),strtolower("\u{00C9}COLE")],JSON_UNESCAPED_UNICODE);
Risultato
["abc-12","École"]