how to make first letter only captial using php.how to make first letter only captial using php.
Php has a little function call ucfirst($string);
where you can make sure the first letter of the string is a captial. Please not though that this will only work if the string is lower case, it only changes the first letter no others so if your string is all captials you won't notice a difference.
If you want to change captials to this then you have to add a little more
$string = 'HELLO WORLD!';
echo ucfirst(strtolower($string)); // Hello world!