Write a PHP script to convert first character of all the words uppercase
ucwords:-
The ucwords() function converts the first character of each word in a string to uppercase.
code:-
<?php
echo ucwords("hello world");
?>
output:-
Hello World
The ucwords() function converts the first character of each word in a string to uppercase.
Post a Comment
If you have any doubts, Please let me know
Thanks!