title: unserialize Error at offset 5 of 9 bytes
body: <p>I'm trying to pass an array trough a html-form input field.
  Using serialize to pass it and then unserialize to read the array again. I have multiple input fields.</p>
  
  <pre><code>$test = array('name' =&gt; 'Sander', 'type' =&gt; 'melon');
  
  echo '&lt;input type="hidden" name="rank[]" value="'.serialize($test).'" &gt;';
  </code></pre>
  
  <p>Then If I want to unserialize it and show the data it gives an error:</p>
  
  <pre><code>$list = $_POST['rank'];
  var_dump($list);
  var_dump(unserialize($list[0]));
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/ytJmw.png" alt="enter image description here"></p>