<?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){
$polygon[] = explode(',',$single_array);
}
var_export($polygon);
preferences:
23.69 ms | 406 KiB | 5 Q