I have a sports score. I need to split it up into teams and scores, but the problem is sometimes teams have more than one word in their names for instance:
$str = "New Mexico State 75 Alabama 84 FINAL";
I have tried things like:
$arr= preg_split("/[\s]+/", $str);
Which just splits by space, which is not what I want. I need the output to be:
$arr[0] = 'New Mexico State';
$arr[1] = '75';
$arr[2] = 'Alabama';
$arr[3] = '84';