X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

PHP strtolower() Function

PHP String Reference 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:

  • strtoupper() - converts a string to uppercase
  • lcfirst() - converts the first character of a string to lowercase
  • ucfirst() - converts the first character of a string to uppercase
  • ucwords() - converts the first character of each word in a string to uppercase

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 PHP String Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook