PHP Using Word Case Functions – String Function

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

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.