hello,
I am S L O W L Y working through learning/writing a JS project.
here is the core issue.:
var pt =<? echo json_encode($prt);?>
alert(pt) // for diagnostic purposes
json is flattening the PHP array to be used in the script.
However, the alert shows me that I only get {[ ,which is just before the first set of double quotes.
JS quits at the double quotes, leaving me with an undefined array.
How do I fix this?