Latest web development tutorials
 

PHP strtolower() Function

< PHP String Reference

Example

Convert all characters to lowercase:

<?php
echo strtolower("Hello WORLD.");
?>
Run example »

Definition and Usage

The strtolower() function converts a string to lowercase.

Note: This function is binary-safe.

Related functions:


Syntax

strtolower(string)

Parameter Description
string Required. Specifies the string to convert

Technical Details

Return Value: Returns the the lowercased string
PHP Version: 4+

< PHP String Reference