ResumesInn
Welcome  ,
Interview Questions >> PHP >> How we can made the letters to capital using PHP ?
Next Question Previous Question

How we can made the letters to capital using PHP ?



  Prasanjeet Ghosh wrote ...
The ucwords()  function used to make the first letter of the word to capital.


sample code:

<?php

echo ucwords("hello, how r u ?");
?>


OUTPUT DISPLAY:
  Hello,How R U ?

  Joseph Ranjan wrote ...
The ucwords( ) function will make first letter of the word to capital .

ex.

<?php
echo ucwords("HELLO HAI")."<br />";
echo ucwords("hello hai")."<br />";
echo ucwords("Hello Hai")."<br />";
?>

Output :

HELLO HAI
Hello Hai
Hello Hai

  Joseph Ranjan wrote ...
In PHP ucwords( ) function used to make the letters to capital .


Login to write answer for this question !
Want to place your ads in this website ?
50USD Per Month for single placement. Contact Us
All Rights Reserved . Developed by SJRANJAN