<?php $input = "(31.56215484936523, 74.35487531125546),(31.556669638119804, 74.35487531125546),(31.558351803858574, 74.3627717345953),(31.562886186493845, 74.36109803617)"; preg_match_all("/\((\d+\.\d+),\s(\d+\.\d+)\)/", $input, $output); $x = $output[1]; $y = $output[2]; Var_dump($x); var_dump($y);
You have javascript disabled. You will not be able to edit any code.