<?php 
$val=array('a','b','c');
array_splice($val, 1, 1);
echo json_encode($val);
?>