PHP strtolower() Function
In this chapter you will learn:
- Definition for PHP strtolower() Function
- Syntax for PHP strtolower() Function
- Parameter for PHP strtolower() Function
- Return for PHP strtolower() Function
- Example - Convert string to lowercase
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 jav a 2 s .c o m*/
$string = "PHP from java2s.com";
$a = strtolower($string);
print($a);
?>
The code above generates the following result.
Next chapter...
What you will learn in the next chapter:
- Definition for PHP strtoupper() Function
- Syntax for PHP strtoupper() Function
- Parameter for PHP strtoupper() Function
- Return for PHP strtoupper() Function
- Example - Convert string to uppercase
Home » PHP Tutorial » PHP String Functions