I have php array like this
[0]->imgae_name=1
image_url=a
[1]->imgae_name=2
image_url=b
i want to convert this array in javascript array how can i do this?
You could convert the PHP array to JSON using json_encode, then echo the json string into the Javascript in your page and use Javascript JSONObject to convert it into a JS array