php strtolower() function


  Translation results:

UK[ˈləʊə(r)] US[ˈloʊə(r)]

adj. Below; at the bottom; lower level

v. Lower; reduce; narrow

Third person singular: lowers Present participle: lowering Past tense: lowered Past participle: lowered

php strtolower() functionsyntax

Function: Convert all characters to lowercase

Syntax: strtolower(string)

Parameters:

ParametersDescription
string Must, specify the string to be converted

Description: strtolower() function converts the string to lowercase, this function is binary safe.

php strtolower() functionexample

<?php
$i = "HELLO WORLD";
$j = strtolower($i);
echo $j;
?>

Run instance»

Click the "Run instance" button to view the online instance

Output:

hello world
<?php
$i = "I'M STUDY IN PHP.CN";
$j = strtolower($i);
echo $j;
?>

Run instance»

Click the "Run instance" button to view the online instance

Output:

i'm study in php.cn

Home

Videos

Q&A