$foo = 'fooCandyBar';$bar = preg_replace('/(.)?([A-Z])/e', '"\\1 \\2"', $foo);echo "$foo = $bar<br />";