Is it posible to store php array in jquery variable?
2 Answers
Yes it is.
You can json_encode your array in PHP and then use it with jQuery via a getJSON request.
See: http://php.net/json_encode and http://api.jquery.com/jQuery.getJSON/
Yes it is.
You can json_encode your array in PHP and then use it with jQuery via a getJSON request.
See: http://php.net/json_encode and http://api.jquery.com/jQuery.getJSON/