<?php $value = '(-6.2811957386588855, 106.70141951079609),(-6.281142416506361, 106.70432702536823),(-6.2781776962328815, 106.70438066954853),(-6.2781776962328815, 106.70136586661579)'; preg_match_all('/\(([0-9\-\s,.]+)\)/', $value, $matches); array_walk($matches[1], function(&$val) { $val = explode(',', $val); }); $coordinates = $matches[1]; print_r($coordinates);
You have javascript disabled. You will not be able to edit any code.