×
Home About Us Products Services News Free Scripts Contact
news php scripts and software

PHP example - How to make the first character in a string uppercase?


PHP - How to make the first character in a string uppercase?

You may use the special PHP function ucfirst.
 
<?php
 
$myText="i have a car";
 
echo ucfirst($myText);
 
?>
 
will display:
 
I have a car

Category: PHP

 
<< Go back