title: need to array display in specific format in php
body: <p>Capture the 'p_data' values into key/pairs and return as table</p>
  
  <p>i try to array display in table format please help me.</p>
  
  <pre><code>$diskspace = array (
      'S' =&gt; 
          array ('DISK-FREE' =&gt; 
                  array (
                  'name' =&gt; 'S',
                  'desc' =&gt; 'FREE',
                  'p_data' =&gt; '\'C:\\ %\'=19%;99;95 \'C:\\\'=17B;3;1073741824;0;21476171776 \'D:\\ %\'=63%;99;99 \'D:\\\'=80B;3;1073741824;0;214753800192 \'E:\\ %\'=91%;99;98 \'E:\\\'=58B;3;1073741824;0;64420311040',),
                  ),              
       'T' =&gt; 
          array ('DISK-FREE' =&gt; 
                  array ('name' =&gt; 'T',
                  'desc' =&gt; 'FREE',
                  'p_data' =&gt; '\'C:\\ %\'=11%;99;95 \'C:\\\'=15B;3;1073741824;0;21476171776 \'D:\\ %\'=18%;99;99 \'D:\\\'=62B;3;1073741824;0;214753800192',),
                  ),
      'P' =&gt; 
          array ('DISK-USED' =&gt; 
                  array ('name' =&gt; 'P',
                  'desc' =&gt; 'FREE',
                  'p_data' =&gt; '\'G:\\ %\'=19%;99;95 \'G:\\\'=92B;3;1073741824;0;21476171776',),
                  ),
      );
  </code></pre>
  
  <p>HTML Output</p>
  
  <pre><code>name, diskname, disk-size, disk-percentage
  
  S,    C:\,      17B,        19%
  S,    D:\,      80B,        63%
  S,    E:\,      58B,        91%
  T,    C:\,      15B,        11%
  T,    D:\,      62B,        18%
  P,    G:\,      92B,        19%
  </code></pre>