I need an o/p like this ["12","13"] when I do the following json operation
I have a 2 varaiables and getting these values as post data
$a = $_POST['cas'];
$b = $_POST['casty'];
$final1 = json_encode($a);
$final2= json_encode($b);
$final_value = '['.$final1.','.$final2.']';
I am getting output as ["12","13"].I am doing correct way in php ? any other ways to get json object apart from this ?