For Background:
I would like parse time and value from several (json) files and put them into an array and write the information in a file!
My Question:
How can I create a file like this construction:
http://www.highcharts.com/samples/data/jsonp.php?filename=aapl-c.json&callback=?
So
[
[1101859200000,33.90],
[1101945600000,32.60],
...
...
]
take a look at json_encode and json_decode. those functions along with fopen, fwrite, and fclose should be what you need.