Controlling Case : ucwords « String « PHP
- PHP
- String
- ucwords
Controlling Case
<?php
$submittedpass = "myPass";
$newpass = strtolower ($submittedpass);
echo $newpass . "<br />";
$astring = "hello world";
echo ucfirst ($astring) . "<br />";
$astring = "hello world";
echo ucwords ($astring);
?>
Related examples in the same category