strtolower()
18th January 2021
0 Comments
Programming Language
PHP [Versions: 4, 5, 7, 8]
Syntax
Typical Usage
Converting text to lowercase in PHP.
Accepted Parameters
- string (string) (Required): The string you want to convert to lower case.
Return Value(s)
Returns the lowercased string.Examples of strtolower()
Example 1
<?php
$name = "LONG JOHN SILVER";
echo strtolower($name);
The above output will be long john silver.
Used In Projects
Was This Helpful?
If this post has helped you, please let me know. Your feedback will be highly appreciated and will help me build better content.