Using the word case functions : strtoupper « String « PHP
- PHP
- String
- strtoupper
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