title: Returning Php multidimensional array in WordPress
body: <p>I have the following array stored in the wordpress options table and I need to get the value of each title</p>
  
  <pre><code>a:1:{s:14:"swd_line_items";a:3:{i:0;a:1:{s:5:"title";s:9:"asdfasdfa";}i:1;a:1:{s:5:"title";s:13:"asdf asdf ada";}i:2;a:1:{s:5:"title";s:29:"fffffffffffffffffffffffffffff";}}}
  </code></pre>
  
  <p>I've tried nested foreach loops but nothing I do seems to work. There must be a simple solution?</p>
  
  <pre><code>function swd_get_line_items() {
  
  $line_items = get_option('line_items_array');
  
  $items = array();
  foreach( $line_items as $item =&gt; $value ) {
  
      foreach ($value as $new =&gt; $v) {
  
          $items[] = array(
              $new =&gt; $v
          );
      }
  
  }
  
  return $line_items;
  
  }
  </code></pre>