php ucwords() function

The ucwords() function is used to converts uppercase in the first character at all words of a sentance.

Demo :



Type Text  

Example :

Type Text : php is a web development language.

If you need to convert a first character capital at words following code useful to you.


<?php
  $string = "php is a web development language";
  $result = ucwords($string);
  echo $result;
?>

The sentence will pass to the ucwords() function.Finally output will display "Php Is A Web Development Language".In the ucwords() function have one parameters that name is string str.

Free Download Script :

If you need ucwords() function demo code click and download from following link.

Download




Content