18th January 2021
PHP [Versions: 4, 5, 7, 8]
Converting text to lowercase in PHP.
- string (string) (Required): The string you want to convert to lower case.
Return Value(s)Returns the lowercased string.
Examples of strtolower()
<?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.