change first letter to capital in php 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!");