Tools, FAQ, Tutorials:
Converting Strings to Upper/Lower Case in PHP
How To Convert Strings to Upper or Lower Cases?
✍: FYIcenter.com
Converting strings to upper or lower cases are easy. Just use strtoupper() or strtolower() functions. Here is a PHP script on how to use them:
<?php
$string = "PHP string functions are easy to use.";
$lower = strtolower($string);
$upper = strtoupper($string);
print("$lower\n");
print("$upper\n");
print("\n");
?>
This script will print:
php string functions are easy to use. PHP STRING FUNCTIONS ARE EASY TO USE.
⇒ Converting Leading Characters to Upper Case in PHP
⇐ Reformatting a Paragraph of Text in PHP
2016-10-13, ∼2608🔥, 0💬
Popular Posts:
How To Avoid the Undefined Index Error in PHP? If you don't want your PHP page to give out errors as...
What is EPUB 3.0 Metadata "dc:description" Element? EPUB 3.0 Metadata "dc:description" is an optiona...
Where to get the detailed description of the json_encode() Function in PHP? Here is the detailed des...
What validation keywords I can use in JSON Schema to specifically validate JSON Array values? The cu...
How to add request query string Parameters to my Azure API operation to make it more user friendly? ...