Posted by zainally on 03/18/07 23:18
I want to detect uppercase characters in a string and separate the two
words in it by a space. I know I can use preg_replace for it, but I am
not very good at regular expressions. Can someone help?
One example of such a string follows. Please note that there are a lot
of strings like these and I want a generic method to do it, which is
why I think preg_replace would be the perfect solution. If someone can
help me, that would be great!
Example:
$string = "UserLocation";
I want the string to be $string = "User Location";
Zain Ally
[Back to original message]
|