string ucfirst ( string str ) converts the first letter of the string to an uppercase character : ucfirst « String « PHP






string ucfirst ( string str ) converts the first letter of the string to an uppercase character

 
<?
    $string = "i like to program in PHP";
    $a = strtoupper($string);
?>
  
  








Related examples in the same category

1.Capitalizing letters
2.ucfirst() function capitalizes the first letter of a string.
3.ucfirst.php