Mostrando entradas con la etiqueta strtolower. Mostrar todas las entradas
Mostrando entradas con la etiqueta strtolower. Mostrar todas las entradas

miércoles, 16 de mayo de 2012

php - convertir en MAYUSCULAS o minusculas

Caso MAYÚSCULAS(UCase, strtoupper)

$str = "Mary Had A Little Lamb and She LOVED It So";$str = strtoupper($str);
echo 
$str; // Prints MARY HAD A LITTLE LAMB AND SHE LOVED IT SO?>

Caso minúsculuas(LCase, strtolower)
 
Caso minúsculas
$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?>