$loc_id = (lat, log);
$loc_id = '(47.718691, -122.28464)';
preg_match_all('/-?[0-9]+(?:\.[0-9]+)?/' , $loc_id, $matches);
$a = $matches[0][0];
$b = $matches[0][1];
$a and $b provides value of latitude and longitude.
CI, Jquery and Smarty! Best combination
No comments:
Post a Comment