Showing posts with label make first letter uppercase. Show all posts
Showing posts with label make first letter uppercase. Show all posts

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()



<?php
$my_string = 'my kuppiya';
$my_string = ucfirst($my_string);

echo $my_string; //My kuppiya

?>



http://www.php.net/manual/en/function.ucfirst.php

If you like to learn about SLIIT please visit www.sliit.lk

 Subscribe To My Blog