strtolower
Convert string to lowercase
strtolower()
function converts a string to lowercase.
Note: This function is binary safe.
lcfirst()
- Convert first character in a string to lowercasestrtoupper()
- Convert string to uppercaseucfirst()
- Convert the first character in a string to uppercaseucwords()
- Convert the first character of each word in a string to uppercaseConvert all characters to lowercase:
<?php echo strtolower ( "Hello WORLD." ) ; ?>
Try it yourself
strtolower ( string )
parameter | describe |
---|---|
string | Required. Specifies the string to be converted. |