change the case in a string?
Posted: Thu Sep 05, 2002 9:21 pm
Ok, i have a variable, $sec, and its contents are all in lowercase. how can i change them to uppercase? is that possible in php?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
<?php
$str = "Mary Had A Little Lamb and She LOVED It So";
$str = strtoupper($str);
print $str; # Prints MARY HAD A LITTLE LAMB AND SHE LOVED IT SO
?>