<?php $value = '(-6.268649975971238, 106.69106266990389),(-6.267711482694832, 106.72625325217928),(-6.288272630052733, 106.72736905112947),(-6.288699201273463, 106.69106266990389)'; foreach(explode('),(',trim($value,'()')) as $single_array){ list ($x, $y) = explode(',',$single_array); $polygon[] = array((double)$x, (double)$y); } var_export($polygon);
You have javascript disabled. You will not be able to edit any code.