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

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -

python - How to create a legend for 3D bar in matplotlib? -