PHP ucwords() function
In this article, We will explain to you PHP ucwords() function with example.
PHP ucwords() function
ucwords() function is a string function. which is accept string and return first character of each word in a string to uppercase. so you can see our PHP String Function example.
Syntax
ucwords(string);
Example
<?PHP $str = "This is my Website!"; echo (ucwords($str)); ?>
Output
This Is My Website!