SDU
Personal tools

Downcase

From SDU

Jump to: navigation, search
To make corrections or additions to this article, select the edit tab above.
To discuss or ask questions about this article, select the discussion tab above.

Overview

Spell function converting string to a lowercase (coverts all characters in string to lowercase)

Usage

string downcase(string attr);
  • attr - any string

Results

Returns converted string.

Examples

if(downcase(option_value) == "yes" ) {
    option_value="Yes";
} else if (downcase(option_value) == "no") {
    option_value="No";
}
This page was last modified 13:36, 16 May 2011.  This page has been accessed 619 times.  Content is available under Attribution-Noncommercial-Share Alike 3.0 UnportedDisclaimers