get first letter of each word php code example
Example: ucwords in php
<?php
/* Convert the first character of each word to uppercase: */
echo ucwords("hello samy, how are you ?");
//output : Hello Samy, How Are You ?
?>
<?php
/* Convert the first character of each word to uppercase: */
echo ucwords("hello samy, how are you ?");
//output : Hello Samy, How Are You ?
?>