I believe shortest possible answer is by using preg_split
here using look-arounds:
Use this regex for splitting:
/(?<=\p{Lu})\h+(?=\p{Ll})/u
Which matches 1 or more horizontal space that is preceded by a uppercase unicode letter and followed by a lowercase unicode letter.
PS: This solution is unicode compatible.
Examples:
print_r(preg_split('/(?<=\p{Lu})\h+(?=\p{Ll})/u', 'YAHOO BE AWESOME rabbit'));
Array
(
[0] => YAHOO BE AWESOME
[1] => rabbit
)
print_r(preg_split('/(?<=\p{Lu})\h+(?=\p{Ll})/u', 'VAN AZERTY bert'));
Array
(
[0] => VAN AZERTY
[1] => bert
)
print_r(preg_split('/(?<=\p{Lu})\h+(?=\p{Ll})/u', 'TYLLON kevin'));
Array
(
[0] => TYLLON
[1] => kevin
)