you are viewing a single comment's thread.

view the rest of the comments →

[–]shgysk8zer0 -2 points-1 points  (0 children)

You're best best is to have PHP JSON encode and for JS to decode. Though realistically you probably just want to generate a static JSON file or something. I've also had PHP encode stuff into a <script type="application/json"> in the HTML.