1.

How To Convert Strings To Upper Or Lower Cases?

Answer»

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");
?&GT;
This script will print:
php string functions are easy to use.
PHP STRING FUNCTIONS ARE EASY TO USE.

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.



Discussion

No Comment Found