Capitalizing letters : ucfirst « String « PHP





Capitalizing letters

 
<?php
print ucfirst("how do you do today?");
print ucwords("the prince of wales");
?>
  
  

Related examples in the same category

1.ucfirst() function capitalizes the first letter of a string.
2.ucfirst.php
3.string ucfirst ( string str ) converts the first letter of the string to an uppercase character