Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How To Convert Strings to Upper or Lower Cases
How To Convert Strings to Upper or Lower Cases? - PHP Script Tips - PHP Built-in Functions for Strings
✍: 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.
2007-04-21, 5992👍, 0💬
Popular Posts:
How can I implement a variable field width with printf? That is, instead of something like %8d, I wa...
What would you use to compare two String variables - the operator == or the method equals()? You can...
How do we create DCOM object in VB6? Using the CreateObject method you can create a DCOM object. You...
What will be printed as the result of the operation below: main() { char s1[]="Cisco"; char s2[]="sy...
An application needs to load a library before it starts to run, how to code? One option is to use a ...