PHP strtolower() Function

Definition

The strtolower() function takes string and returns that string in lowercase characters.

Syntax

PHP strtolower() Function has the following syntax.

string strtolower ( string str )

Parameter

str is the string value we want to convert.

Return

PHP strtolower() Function returns the string in lowercase.

Example

Convert string to lowercase


<?PHP//from   w  ww  . ja v a2s . c o m
$string = "PHP from java2s.com"; 
$a = strtolower($string); 
print($a);
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Function reference »




PHP Array Functions
PHP Calendar Functions
PHP Class Functions
PHP Data Type Functions
PHP Date Functions
PHP File Functions
PHP Image Functions
PHP Math Functions
PHP MySQLi Functions
PHP SimpleXML Functions
PHP String Functions
PHP XML Functions
PHP Zip Functions