<?php $str = '[ { "id":"1", "f_name":"Mitrajit", "l_name":"Samanta", "class":"XII", "section":"A,B,C", "roll":"1", "status":"1" } ]'; $json = json_decode($str, true); $json[0]["section"] = explode(",", $json[0]["section"]); $json = json_encode($json); print_r($json);
You have javascript disabled. You will not be able to edit any code.