Write a PHP script to convert first character uppercase

ucfirst():-

The ucfirst() function converts the first character of a string to uppercase.


code:-

<?php

echo ucfirst("hello world");

 ?>


output:-

Hello world

Post a Comment

If you have any doubts, Please let me know
Thanks!

Previous Post Next Post