How to set first char of string as capital letter(uppercase)

How to set first char of string as capital letter(uppercase)

Use ucfirst() function to set uppercase first char of string

<?php
echo ucfirst("hello php!");
?>

Comments

Popular posts from this blog

How to set self page in form action?

Let's make a webservice in php