How can I convert a javascript array to a php array??
I have a javascript array which I want to put the values into a php array
please help me?
How would I go about doing this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You would typically convert the array to a JSON string with
JSON.stringify, then make an AJAX request to the server, receive the string parameter andjson_decodeit to get back an array in the PHP side.