Convert Php array in javascript array -


i have php array this

[0]->imgae_name=1  image_url=a  [1]->imgae_name=2  image_url=b 

i want convert array in javascript array how can this?

you convert php array json using json_encode, echo json string javascript in page , use javascript jsonobject convert js array


Comments

Popular posts from this blog

php - Dynamic url re-writing using htaccess -

java - Multi-Label Document Classification -

blackberry 10 - how to add multiple markers on the google map just by url? -