How to get ajax response as array to php?

I have a php script. This will communicate with the server using ajax. The ajax response text is returned as a single variable/text/number. But i want to get more than one values in database and stored in a php array. I want this php array to return as ajax response text and stored in a javascript array.

Possible. Please explain….

One Response to “How to get ajax response as array to php?”

  • Hanfree3:

    You can try to serialize data in php to generate an storable representation of a value
    http://php.net/manual/en/function.serialize.php
    so you’ll be able to convert an array to text

Leave a Reply