We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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.



42.1k

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



3.6k
echo ucfirst(strtolower('J2ME'));