Re: lower case tO UPPER CASE

From: Date: Mon, 07 Aug 2000 09:43:36 +0000
Subject: Re: lower case tO UPPER CASE
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-10435@lists.php.net to get a copy of this message
Use the "strtoupper" function. From the manual: 1 2 $str = "Mary Had A Little Lamb and She LOVED It So"; 3 $str = strtoupper ($str); 4 print $str; # Prints MARY HAD A LITTLE LAMB AND SHE LOVED IT SO 5 To go the other way: 1 2 $str = "Mary Had A Little Lamb and She LOVED It So"; 3 $str = strtolower($str); 4 print $str; # Prints mary had a little lamb and she loved it so 5 Jamie On 6 Aug 00, at 8:01, Sid wrote: > Hi, > > I have to convert all charecters in a string from lower case to UPPER > CASE. How do I do that. > > Sid > ------------------------------ Jamie Shields Deputy Computing Officer Computer Resources Centre Faculty of Human Sciences Kingston University Phone: (0181) 547-2000 ex:2367 http://humansciences.king.ac.uk ------------------------------

« previous php.general (#10435) next »