This question already has an answer here:
I have a config file in PHP.
return array(
'window_width' => 1000,
'window_height' => 800
//etc
);
How can I read these vars into my javascript? Should I echo them to the page, in perhaps a data attribute and pick them up from there? Or is there a better way?
</div>