Initial-capping words is a very common task : String Case : String PHP Source Code


PHP Source Code » String » String Case »

 

Initial-capping words is a very common task



<?php
     $first_name = "jeremy";
     $last_name = "allen";
     $middle_init = "w";
   
     $first_name = ucfirst($first_name);
     $last_name = ucfirst($last_name);
     $middle_init = ucfirst($middle_init);
   
     print("$first_name $middle_init $last_name<br />");
   
     $name = "jeremy w allen";
     $name = ucwords($name);
   
     print($name . "<br />");
?>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo String
» String Case