Hi I have some input like so:
$string = "0°25'30"S, 91°7'W"
I want formulate a regex expression in php which captures the individual elements so that I end up with:
$position_array = array([0] => 0 [1] => 25 [2] => 30 [3] => S [4] => 91 [0] => 7 [0] => W)
Any help would be much appreciated.
Off of the top of my head, I would try this: