title: How to handle unserialize data
body: <p><strong>cla</strong> is an array that I save into the database (MySQL) using php </p>
  
  <pre><code>$input = serialize($_POST['cla']);
  
  //in the database I have: 
  a:3:{s:6:"t9ffj7";s:27:"Paul";s:7:"71ciz86";s:27:"Peter";s:7:"awez69g";s:27:"Marie";}
  </code></pre>
  
  <p>To get the array from the database, I unserialize it and apply the var_dump() to it. </p>
  
  <pre><code>&lt;?php 
  $output = var_dump(unserialize($row['li_file'])); 
  echo $output; 
  ?&gt;
  </code></pre>
  
  <p>then, I get  this as output:</p>
  
  <pre><code>array (size=3)
    't9ffj7' =&gt; string 'Paul' (length=4)
    '71ciz86' =&gt; string 'Peter' (length=5)
    'awez69g' =&gt; string 'Marie' (length=5)
  </code></pre>
  
  <p>I would like to used each key to get the corresponding value. 
  so that, e.g. </p>
  
  <pre><code>$first_element = array['t9ffj7'];
  echo $first_element; //I expect **Paul**  
  </code></pre>
  
  <p>Could someone help me ?</p>