PHP lcfirst() Function
The lcfirst()
function converts the first character of a string to lowercase.
- ucfirst() – Converts the first character of a string to uppercase
- ucwords() - Converts the first letter of each word in a string to uppercase
- strtoupper() – converts a string to uppercase
- strtolower() – converts a string to lowercase
Syntax
lcfirst(string)
- string - (Required) Specify the string to convert.
Example
<?php echo lcfirst("Welcome"); ?>
Output
welcome