PHP Manual
Prev |  | Next

# strtolower

strtolower -- Make a string lowercase.

## Description

`string strtolower`(string str);

Returns `string` with all alphabetic characters converted to lowercase.

Note that 'alphabetic' is determined by the current locale. This means that in i.e. the default "C" locale, characters such as umlaut-A (Ä) will not be converted.

Example 1. Strtolower() example

      1
      2 $str = "Mary Had A Little Lamb and She LOVED It So";
      3 $str = strtolower($str);
      4 print $str; # Prints mary had a little lamb and she loved it so
      5

See also strtoupper() and ucfirst().

Prev | Home | Next
strtok | Up | strtoupper