I have this array, and I want to return it as JSON from a PHP script.
$ar = array(
'k0'=> array('a', 'b', 'c'),
'k1'=> array(1, 2, 3)
Last post » MarPlo
Use json_encode() to encode the data and set the content-type with header('Content-type: application/json');
Anyway, it works fine if you just...