Using the word case functions : strtoupper « String « PHP






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 />");
?>
  
  








Related examples in the same category

1.Changing case of strings
2.Converting Case
3.string strtoupper ( string str ) returns that string entirely in uppercase characters.
4.strtoupper(): Convert a string to uppercase
5.strtoupper.php
6.Modifying capitalize( ) to take a reference parameter