Articles → PHP → Ucwords Function In PHPUcwords Function In PHPIn this article, we will discuss the ucwords function in PHP.Purpose ucwords converts the first character of each word in the string to the upper string.Example <!DOCTYPE html> <html> <body> <?php echo ucwords("all the first character of the word should be in caps"); ?> </body> </html>Output Click to EnlargePosted By - Karan Gupta Posted On - Friday, October 9, 2020 Query/Feedback Your Email Id Subject Query/Feedback Characters remaining 250
<!DOCTYPE html> <html> <body> <?php echo ucwords("all the first character of the word should be in caps"); ?> </body> </html>
Query/Feedback