I will probably miss something really obvious.
When converting a bunch of strings before inserting them into an array, I noticed some string where they are different from each other due to the fact that the first char was uppercase or not. Then I decided to use ucfirst to make the first character in uppercase, but it seems like it is not working properly. I looked on the Internet, trying to understand why this is happening, but I was not lucky.
$produtto = 'APPLE'; echo ucfirst($produtto);
If I use mb_convert_case instead
$produtto = 'APPLE'; echo mb_convert_case($produtto, MB_CASE_TITLE, "UTF-8");
Fabio source share