convert PHP array to Javascript array


Posted on 16th Feb 2014 07:03 pm by admin

I have a page that gets a request sent from AJAX, and I am trying to convert a PHP array to a javascript array. is this possible? I tried with Json_encode but it doesn't seem to work. is there something I have to do on the javascript side to make json_decode work?

No comments posted yet

Your Answer:

Login to answer
235 Like 33 Dislike
Previous forums Next forums
Other forums

[function.file]: failed to open stream: No such file or directory
Okay I wrote this little script to upload a csv file that is located on my webhosts server to a mysq

Share admin accross websites
I'm using .net memberships and roles in one of my sites, but I need to be able to share logins and p

pull content
I have an existing page, domain/adverts.php which has a good PR. I've just rebuilt my site and the n

How to show next and prev records
Hi all,

Sorry if this is simple, i'm very new to php, well, any programming language actually

Redirect not working after making a POST/GET
Hi Everyone,

I am a novice in PHP. Here I have 2 pages, one page with a textbox and button an

Echoing ASCII code
I have a php page that splits a string into chars and then echoes the ASCII code for each char. I'm

User information
Hi All,
By using t-code SUIM we get all the user details,if suppose we donot have permission t

Small problem with image resize script
Hi!

I am a little bit new to php and I have an issue installing an image resize script I down

Images in email problem
I found this script for sending emails, it works but if the email has <img src="image.jp

Oracle Connectivity
Hi Every One,

Can we access SAP from oracle database.If it possible then please spec

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash