Current Location: Home> Function Categories> strtolower

strtolower

Convert string to lowercase
Name:strtolower
Category:String
Programming Language:php
One-line Description:Convert strings to lowercase letters.

Definition and usage

strtolower() function converts a string to lowercase.

Note: This function is binary safe.

Related functions:

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

Example

Convert all characters to lowercase:

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

Try it yourself

grammar

 strtolower ( string )
parameter describe
string Required. Specifies the string to be converted.
Similar Functions
Popular Articles