-1

Possible Duplicate:
What's the best way to send JavaScript array to PHP script using GET?

I just want to know that what is the best way to create a javascript dictionary .

Like suppose i have a php array and i want to feed the value of that array(loop iteration )

to a javascript dictionary in the form of key value ?

1

1 Answer 1

1

If you are talking about supplying the whole array (which it seems you would like to do), you can simply use json_encode on the array to encode it as JSON (which is a subset of JavaScript).

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.