title: Array unserialize issue returning null/false
body: <p>I've got an array being returned in this format:</p>
  
  <pre><code>a:1:{i:0;i:305;}
  </code></pre>
  
  <p>I can't seem to <code>unserialize()</code> it to access the <code>305</code>. Anyone have an idea on what I can do?</p>
  
  <p>Query in WordPress:</p>
  
  <pre><code>$order_id = $wpdb-&gt;get_row("SELECT meta_value FROM wp_postmeta WHERE post_id=" . $t-&gt;object_id . " AND meta_key='wpc_inv_order_id");
  </code></pre>
  
  <p>I attempted to use:</p>
  
  <pre><code>$str = $order_id-&gt;meta_value;
  $a = unserialize($str);
  var_dump($a);
  echo $a;
  </code></pre>
  
  <p>which resulted in <code>bool(false)</code>.</p>
  
  <p>However, it appears that by just doing <code>echo $order_id-&gt;meta_value;</code> it somehow unserialized itself and is now giving me the ID value in the serialized array.</p>
  
  <p>So by doing:</p>
  
  <pre><code>$str = $order_id-&gt;meta_value;
  echo $str;
  </code></pre>
  
  <p>I'm getting output <code>305</code> on the above.</p>
  
  <p>Thank you for your help!</p>