<?php $data='[1,2013-01-01]'; $data1=preg_replace('/]/','"]',preg_replace('/,/',',"',$data)); print $data1; ?>