My Array :
$val=array('a','b','c');
echo json_encode($val);
Output : ["a","b","c"]
Using unset to remove 'b' from location '1' : unset($val[1]);
Output:{"0":"a","2":"c"}
Expecting Output as : ["a","c"]
Is there any solution ? to get rid of keys and curl brackets and get output as expected!