I want to pass php variable into html for further processing. this is php variable-
$coords = array();
array_push($coords,some value);
I want to pass this to html-
var Coordinates = [];
Coordinates.push('<? php $coords; ?>');
But this is not the correct way as it gives error. Someone please help me to achieve this
Thanks.