.

Monday, October 17, 2011

Home » » PHP code - ucwords

PHP code - ucwords

The ucwords() function is to converts first character of each word in a string to uppercase.



Syntax :
ucwords(string)

Example :
<?php
$string="easy way to learning php";
$ucwords=ucwords($string);

echo $ucwords;

?>

Output :
Easy Way To Learning Php

0 komentar:

Post a Comment