strtolower() and strtoupper()

Creator:
Virst

You can use the function strtolower(); to put all the characters in a string lowercase.

Here is an example:



<?php echo strtolower("HELLO! This script is SO cool!\"); ?>

This will output: hello! this script is so cool!

Now, strtoupper does exactly the opposite.

Example



<?php echo strtouppoer("HELLO! This script is SO cool!\"); ?>

Which will output: HELLO! THIS SCRIPT IS SO COOL!

Description:
This will put all the characters in a string lowercase or uppercase.

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options