How to strtoupper function works?

 Published April 23,2010 in PHP

string strtoupper ( string string )
 

Returns string with all alphabetic characters converted to uppercase.

 

Note that 'alphabetic' is determined by the current locale. For instance, in the default "C" locale characters such as umlaut-a (ä) will not be converted.

 

Example 1. strtoupper() example

 

$str = "Mary Had A Little Lamb and She LOVED It So";
$str = strtoupper($str);
echo
$str; // Prints MARY HAD A LITTLE LAMB AND SHE LOVED IT SO
?>

 

Note: This function is binary-safe.



Like our site? Be a member of Coolajax fan page to get daily posts updates!

recommended-tutorial You May Like This Posts!

» How to str_repeat Function works?

» How to strstr function works?

» How to strcasecmp function works?

» str_ireplace in php part II

» How to send various kinds of email using PHP

  tuts_view Total Read: 491
blog comments powered by Disqus

Topics

Coolajax Fans

coolajax fan page on Facebook