Posted by zorro on 01/11/07 21:55
Toby Inkster wrote: > echo preg_replace('/(.)([A-Z])/', "$1 $2", $string); This won't always work either, although I haven't tested it. If (.) can be any character then " Word" will be replaced by " Word" (2 spaces). Maybe this: preg_replace('/(\w)([A-Z])/', "$1 $2", $string);
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming