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, ∼2230🔥, 0💬
Popular Posts:
How to use 'choose ... when ..." policy statements to control execution flows? If you want to contro...
How to Build my "sleep" Docker image from the Alpine image? I want the container to sleep for 10 hou...
How to convert JSON Objects to PHP Associative Arrays using the json_decode() function? Actually, JS...
Can Multiple Paragraphs Be Included in a List Item? Yes. You can include multiple paragraphs in a si...
How to dump (or encode, serialize) a Python object into a JSON string using json.dumps()? The json.d...