I have strings from a database like this:
$string1 = "1219.56.C38-.C382 Codex Azcatitlan";
$string2 = "1219.56.C45-.C452 Codex Cempoallan";
How do I split them up into:
["1219.56.C38-.C382", "Codex Azcatitlan"]
["1219.56.C45-.C452", "Codex Cempoallan"]
Note if I used $stringar1 = explode(" ", $string1) etc. I will get this:
array(3)
(
[0] => string "1219.56.C38-.C382"
[1] => string "Codex"
[2] => string "Azcatitlan"
)
etc.
I need "Codex Azcatitlan"
I do not know in advance how many multiple spaces there are in between the left and right element. However, we can assume that it will always be more than 1 space.