title: Can you have a PHP $_POST variable that is set to an array?
body: <p>I am using AJAX to put some data in my database. I am using JSON to submit the data to a PHP page. I am using a POST request. Can you set one of the POST variables as an array? Below I have the full AJAX request, but here is the part where I am setting two parts of the data as arrays:</p>
  
  <pre><code>"content[]" : testContentArray,
  "content_attr[]" : testContentAttributes,
  </code></pre>
  
  <p>Below is my full AJAX (using jQuery):</p>
  
  <pre><code>$.ajax({
                  type: "POST",
                  url: "../includes/create_test_main.ajax.php",
                  data:   {"tags" : $('#testTags').val(),
                                           "title" : $('#testTitle').val(),
                                           "subject" : $('#testSubject').val(),
                                           "description" : $('#testDescription').val(),
                                           "content[]" : testContentArray,
                                           "content_attr[]" : testContentAttributes,
                                           "user_id" : user_id},
                  success: 
  
                                       function(testId) {//redirect Page
                                          window.location.href = "http://localhost/nvr_forget/public_html/test/" + testId + "/";
                                       }
              });
          };
  </code></pre>
  
  <p>If that is the way to do it, how would I handle it on the PHP side? do I handle the $_POST variable as a normal array?</p>