json and php
For that purpose only json is there. When we do json_encode using js we will get a string. That string you can send to PHP via form submit , or ajax call etc etc..
The same string can be decoded using php json_decode function. You can visit www.json.org to get more details.