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

Pulling out some result data from MYSQL
Hey Guys,

I've built a PHP page that has a for just imagine something like registration form

ScriptResource.axd gives an error on fresh install of ASP.NET Ajax 1.0
Hello,I have a fresh install of Microsoft ASP.NET Ajax 1.0. When I create an Ajax enabled website in

PHP code for a proxy
I was wondering which function I could use to create an online proxy tool. I was thinking cURL would

Quick Question about echo value
Hey guys, I'm trying to get something to show differently in one of my scripts. I'm trying to make

Members Only
Hi all, for my website i have a members area only which on members can veiw, but at the moment anyon

string to currency format
Hi guys...

Actually I chunk out some data from txtfile and one of the data contains amount va

php/xmlrpc class issue
I am working on xml-rpc in php to start with.

I have a class that only has variables defined

Business Health Check
Hello

I need to create an online business health check for a client it will be multiple choi

cURL Upload Help
OK, I am creating a bridge from a local program to my website and I am trying to find the best way t

pointer 102 question
I read a book
1
2
3
4
5
6
7
8
9
10
11
12
int main() {

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