You can use JSON to do this.
On the JavaScript-side, just use JSON.stringify(theArray); to create a JSON-representation of that array.
In PHP you can use json_decode(theString, true); to get the array
Links:
http://php.net/manual/function.json-decode.php
http://en.wikipedia.org/wiki/JSON