English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

PHP Basic Tutorial

PHP Advanced Tutorial

PHP & MySQL

PHP Reference Manual

PHP strtolower() Function Usage and Example

    PHP String Character String Function Manual

    The strtolower() function is used to convert a string to lowercase.

Syntax

strtolower ( $string )

Definition and Usage

 Convert all letter characters in string to lowercase and return.

Related Functions:

  • strtoupper() - Convert the string to uppercase

  • lcfirst() - Convert the first character of the string to lowercase

  • ucfirst() - Convert the first character of the string to uppercase

  • ucwords() - Convert the first letter of each word in the string to uppercase

Return Value

Return String in Lowercase

Parameter

Serial NumberParameter and Description
1

string

String to Convert

Online Example

Try the following example to convert a string to lowercase:

<?php
    //The strtolower() function converts a string to lowercase
   echo strtolower("www.oldtoolbag.com");
?>
Test and See‹/›

Output Result

www.oldtoolbag.com

PHP String Character String Function Manual