How can I easily add a space between each lowercase and uppercase letter of a string? The trick is that it can only be between lowercase /uppercase, not when you have an uppercase/lowercase.
For example:
camelCase
should become:
camel Case
not:
camel C ase
I've got a solution using preg_match_all and then looping, but there has to be an easier way. Ideas?