title: How to get an Array with jQuery, multiple <input> with the same name
body: <p>I have a form where users can add input fields with jQuery.</p>
  
  <pre><code>&lt;input type="text" id="task" name="task[]" /&gt;
  </code></pre>
  
  <p>After submitting the form I get an array in PHP.</p>
  
  <p>I want to handle this with the <code>$.ajax()</code> but I have no idea how to turn my <code>&lt;input&gt;</code>s to an array in jQuery.</p>
  
  <p>Thanks in advance.</p>