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
You Should Post it to another(or current) page to be processed with PHP. If you don't want page to be redirected Use AJAX to send Array to PHP.