turnitup wrote:
> I have a JavaScript function that talks to php using ajax. It can return
> values from php.
> However, I wish now to return an array. Is it possible to create an
> array in php, format it in some way and pass it back to javascript for use?
There are various data interchange formats possible, one is JSON, which
in terms of JavaScript is just a subset for what JavaScript allows
syntactically for object and array literals, and which has lots of
libraries for other languages, one being PHP, see the "JSON in PHP"
entry on <http://www.json.org/>.
--
Martin Honnen
http://JavaScript.FAQTs.com/