Articles → PHP → Ucfirst Function In PHPUcfirst Function In PHPIn this article, we will discuss the ucfirst function in PHP.Purpose ucfirst function converts the first character of the string to the upper case.Example <!DOCTYPE html> <html> <body> <?php echo ucfirst("first letter of every line should be in CAPS"); ?> </body> </html>Output Click to EnlargePosted By - Karan Gupta Posted On - Thursday, October 8, 2020 Query/Feedback Your Email Id** Subject* Query/Feedback Characters remaining 250**
<!DOCTYPE html> <html> <body> <?php echo ucfirst("first letter of every line should be in CAPS"); ?> </body> </html>
Query/Feedback