title: php cannot send posted array elements
body: <p>I successfully passed following values with AJAX post method to my PHP file</p>
  
  <pre><code>name:John
  email:test@test.com
  comments:Hello
  category_list[]:Books
  category_list[]:Documents
  </code></pre>
  
  <p>The problem is that the following code sends <code>HelloArray</code> instead of <code>HelloBooksDocuments</code>. Could you please help me to find my mistake.</p>
  
  <pre><code>$email = $_POST["email"];
  $name = $_POST["name"]);    
  $comments = $_POST["comments"];
  $categories = $_POST["category_list"];  //the problem is here  
  </code></pre>