Menu
I have code like:
[code=php]
foreach($var as $i=>$element) {
$var[$i] = ucfirst($element);
}
Issue is that exploded text is all the time CAPS like
TEXT
When I try to ucfirst it will be not Text as all are CAPS.
PHP:
Returns a string with the first character of str capitalized, if that character is alphabetic.
If I try $var[$i] = mb_strtolower($element); it will be all lower.
How to set in one line mb_strtolower and the first character capitalized like Text?