title: Alternative to jQuery's serialize()?
body: <p>I have a lot of <code>input</code>s with the same <code>name</code> attribute. I know how to get them all as jQuery object!</p>
  
  <p>The <code>console.log()</code> prints-out something like this:</p>
  
  <pre><code>[
  &lt;input type=​"checkbox" name=​"people" value=​"33" checked=​"checked"&gt;​
  , 
  &lt;input type=​"checkbox" name=​"people" value=​"1" checked=​"checked"&gt;​
  ]
  </code></pre>
  
  <p>After that, I need to send an AJAX request to server that contains all IDs of people (<code>value</code> attribute).</p>
  
  <p>Obviously, I can chain <code>serialize()</code> to that jQuery object and the result will be like:</p>
  
  <pre><code>people=33&amp;people=1
  </code></pre>
  
  <p>...but I'm looking for 'more-friendly' way. 'More-friendly' to PHP, so I can do like:</p>
  
  <pre><code>foreach ($_POST['people'] as $people) {
  
      echo $people;
  
  }
  </code></pre>