Forum und email

strtolower

(PHP 4, PHP 5)

strtolower — Converte in minuscolo una stringa

Descrizione

string strtolower ( string $str )

La funzione restituisce la stringa string con tutti i caratteri alfabetici convertiti in minuscolo.

Nota: i caratteri 'alfabetici' sono determinati in base alle impostazioni locali. Ciò significa, ad esempio, che nelle impostazioni locali di default del "C", il carattere umlaut-A (Ä) non sarà convertito.

Example#1 Esempio di uso di strtolower()

<?php
$str 
"Mary Had A Little Lamb and She LOVED It So";
$str strtolower($str);
echo 
$str// Prints mary had a little lamb and she loved it so
?>

Nota: Questa funzione è binary-safe (gestisce correttamente i file binari)

Vedere anche: strtoupper(), ucfirst(), ucwords() e mb_strtolower().