PHP Tutorial : Upper Case Characters

Another week, another fresh post over here. I will write shortly about two ways on how to make characters/letters upper case (capitalize). One way its strtoupper (string to upper) which converts all string, and the second its for first character only function ucfirst(). Here comes the example:

<?php
$capitalizeString = strtoupper("my string");
//will return MY STRING

$capitalizeFirst = ucfirst("my");
//returns My

?>
This entry was posted in Short PHP Functions and tagged , , , , , , , , . Bookmark the permalink.

2 Responses to PHP Tutorial : Upper Case Characters

  1. How to Get Six Pack Fast says:

    The style of writing is very familiar . Did you write guest posts for other bloggers?

  2. admin says:

    No, I published an article of mine called “PHP Tutorial” to a few thousands of blogs and article sites

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>