php convert first letter to uppercase code example
Example 1: ucfirst
<?php
/* Convert the first character of "hello" to uppercase: */
echo ucfirst("hello samy!");
//output : Hello samy!
?>
Example 2: php capitalize first letter
ucfirst("hello world!");