Hello
Assume I have a string like so:
$test = 'Hello My Name is John";
I would like to lowercase the first letter in the string so the stringw will become
"hello My Name is John"
I saw function ucfirst(), but there is no lcfirst()
you can assume that the first letter is latin
regards
how to lowercase the first letter in a string
Moderator: General Moderators
Here is a simple solution I found:
Code: Select all
$string{0} = strtolower($string{0});That would be easier, yes.jasongr wrote:Here is a simple solution I found:Code: Select all
$string{0} = strtolower($string{0});