How can I turn an array like this:
Array ( [1396076400000] => 1587 [1396162800000] => 1776 [1396249200000] => 2860 )
into a JSON array with this format:
[[1396076400000,1587],[1396162800000,1776],[1396249200000,2860]]
I've tried json_encode() but it seems I need to do some work on the array structure before I call that. How can I convert the keys and values of one array into the format that I need?