On 25/04/07, Robin Vickery <[EMAIL PROTECTED]> wrote:
$string = preg_replace('/(?<=\w)([[:upper:]])/', ' $1', $string);

turns "this is OpenSourceCode" to "this is Open Source Code"


Another great solution, Robin, thanks. I've learned a LOT from this thread.

Dotan Cohen

http://what-is-what.com/what_is/open_office.html
http://hardtofindlyrics.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to