php ucfirst() function

The ucfirst() function is used to converts uppercase in the first character of a sentance.

Demo :



Type Text  

Example :

Type Text : php is a web development language.

If you need to convert a first character capital of sentance following code useful to you.


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

The sentence will pass to the ucfirst() function.Finally output will display "Php is a web development language".In the ucfirst() function have one parameters that name is string str.

Free Download Script :

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

Download




Content