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

Buggy registration system
Hey, I just started scripting in PHP, and I ran into a few problems.
Code: <?php
includ

Combining refCursors and Summing
Given the following DDL:

CREATE TABLE FOODSALESTEST ("WEEKNBR" NUMBER, "ST

update 2 columns by doing inner 2-column query
Hi,
is something like this possible?

update contract_all set col1,col2 =
(

Image upload - determine folder
I have an upload script that may be accessed from different directories. Problem is, the script is m

b+ tree
Hi
can every body help me about b+ tree ?(insert & delete)

Comparing Values
Hi
I'm reading data from a database and this seems to work OK.

Each system has an associat

PEAR Email Attachment w/ $gpg
I have no issues with this code if I take out the attachement section and include the info in the em

What makes a script your own?
If someone finds a login script online, and changes some variable names around and some other minor

upload photo limits
ive got a upload photo script and im just trying to make more secure currently it limits size and as

Count
Getting the same count everytime

Code:
$visitquery = mysql_query("SELECT COUNT(*) FR

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