Is working properly function camelize???

Hello all!!

Why camelize outputs 'J2mE' instead of 'J2me'???

echo \Phalcon\Text::camelize('J2ME');

Hi @Farkhod

I'm on the purpose that the camelizer thinks that you have 3 words : "J" "2m" and "E". I think it is considering that a number followed by a letter is one word and E is another word.

The first goal of the camelize function is to transform expressions like "one-thing" or "one_thing" to "OneThing". Then because you are giving a text with only capital, it considers that E is another word.


Is it really work function, or is it a shortage of developers?

echo ucfirst(strtolower('J2ME'));