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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -