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;
?>
$string="easy way to learning php";
$ucwords=ucwords($string);
echo $ucwords;
?>
Output :
Easy Way To Learning Php


0 komentar:
Post a Comment