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

Why does my php page download images over and over
Can anybody please explain to me why my php page keeps downloading the images and other items every

Reg Ex
Im trying to search for the string: srv_9 (Dead ???)

I thought to use preg_match, however I d

help with image text
Hi ...

see i need the text of the name and number to start in the center and always be in the

please help me in this update statment
hi every one

if I have table and this data in it

id name
10

PHP Search Issue
Hi, I am using the following code to search and return flights from a database. The user searches by

Displaying Column Names
I have a question regarding the ability to show the column names from my table/query.
What I'm lo

Solution to the FindControl problem
I have seen may posts about having problems with the FindControl method. Most seem to come about bec

Warning: mysql_num_rows() supplied argument is not a valid MySQL result resource
This may be simple I just may need another pair of eyes..

When i get records back the below c

small inaccuracies
I have this code to convert fractional base 10 into base 2:

while($num > 0)

form variables from database help.
Hi all,

I would like to have a form that gives you options based on the results of an mysql q

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