Well, it is somewhat possible, if the javascript were to build a form, then let the user submit it, (or autosubmit it) then you could get the data out.
To put the data into a format php could interpret, you can use standard array syntax on the form vars like so:
<input type=hidden name=abc[0] value=somevalue>
like that.