This question already has an answer here:
I've been stuck on this all day and I haven't been able to find an answer that solved my issue:
How can I get this to work? I'm currently working with the PHP in my page--front.tpl.php file because I'm unsure of how to call it.
echo json_encode($latitudes); echo json_encode($ar);
And I've tried multiple things but none of them worked (so many things that it just got me more and more confused). So therefor my question is just: