title: Sending an array to php from JavaScript/jQuery
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4290720/send-arrays-of-data-from-php-to-javascript">send arrays of data from php to javascript</a>  </p>
  </blockquote>
  
  
  
  <p>I know there are many questions like this but I find that none of them are that clear.</p>
  
  <p>I have an Ajax request like so:</p>
  
  <pre><code>$.ajax({
      type: "POST",
      url: "parse_array.php",
      data: "array=" + array,
      dataType: "json",
      success: function(data) {
          alert(data.reply);
      }
  });
  </code></pre>
  
  <p>How would I send a JavaScript array to a php file and what would be the php that parses it into a php array look like?</p>
  
  <p>I am using JSON.</p>