ucfirst.php : ucfirst « String « PHP






ucfirst.php

 
<?php
   $sentence = "the newest version";
   echo ucfirst($sentence);
?>
  
  








Related examples in the same category

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