Mega Code Archive

 
Categories / Php / Strings
 

Using the word case functions

<?php $username="John Bond"; echo("$username in uppercase is ".strtoupper($username).".<br />"); echo("$username in lowercase is ".strtolower($username).".<br />"); echo("$username in first letter uppercase is ".ucwords($username).".<br />"); ?>