Can someone suggest a simple function that will parse a string into two parts, based on everything before and after the comma? I want to split up a latitude longitude pair so that I have two variables instead of one.
I need to turn this:
-79.5310706,43.6918950
into this:
-79.531070
43.6918950
Or if you need it to stay as a space-separated string, just
str_replace()the comma to a space!