I have a number of strings which contain words which are bunched together and I need to seperate them up.
For example ThisWasCool - This Was Cool MyHomeIsHere -
$string = preg_replace('/[A-Z]/', ' $0', $string);
Maybe run the result through ltrim after.
$string = ltrim(preg_replace('/[A-Z]/', ' $0', $string));