title: jQuery to PHP - serialized strings
body: <p>I'm currently AJAX'ing a login form.</p>
  
  <pre><code>var data = $(this).serialize();
  </code></pre>
  
  <p>This is the data I'm sending, I get this with PHP using Codeigniter like so:</p>
  
  <pre><code>$ajax = $this-&gt;input-&gt;post('data');
  </code></pre>
  
  <p>This returns <code>username=john&amp;password=doe</code> as you'd expect.</p>
  
  <p>How do I turn that into an array? I've tried doing <code>unserialize()</code> and I get null.</p>