it was always a question for me that how can i use an array value in javascript while that array is defined in my php scripts
For example consider reading some va
You can use the json_encode function, to safely return a JSON object which you can use directly in JavaScript:
Outputs: