I'm trying to return a JSON response like this:
?([
[Date.UTC(2013,5,2),0.7695],
[Date.UTC(2013,5,3),0.7648]
]);
Full example: https://www.highcharts.com/samples/data/jsonp.php?filename=usdeur.json&callback=?
I'm trying to return a JSON response like this:
?([
[Date.UTC(2013,5,2),0.7695],
[Date.UTC(2013,5,3),0.7648]
]);
Full example: https://www.highcharts.com/samples/data/jsonp.php?filename=usdeur.json&callback=?
You need to encode that response with json_encode: http://php.net/manual/en/function.json-encode.php
Be aware about the depth param when working with arrays