Wednesday, June 25, 2008

How to make first letter uppercase (Capital) using PHP

You want to make your first letter in your string uppercase(Capital) using php?
have no fear you can use php built in function ucfirst()

$my_string = 'my kuppiya';
$my_string = ucfirst($my_string);

echo $my_string; //My kuppiya


If you like to learn about SLIIT please visit

 Subscribe To My Blog

No comments:

Post a Comment