here is the code to convert javascript array to php array..... this is done with cookies...
function getCookie(c_name) { var i,x,y,ARRcookies=document.cookie
In JS:
var a, s; a = [ 'one', 'two', 'three']; s = JSON.stringify( a ); //Do something to send `s` to the server in a request
In PHP, assuming s came from client in a cookie
s
Simple as that.