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.

```
$test = array('name' => 'Sander', 'type' => 'melon');

echo '<input type="hidden" name="rank[]" value="'.serialize($test).'" >';

```

Then If I want to unserialize it and show the data it gives an error:

```
$list = $_POST['rank'];
var_dump($list);
var_dump(unserialize($list[0]));

```

![enter image description here](https://i.stack.imgur.com/ytJmw.png)