title: List values in multi-dimensional array in php
body: <p>I have been working on this a while. I see multi-dimensional arrays in php are not that easy. 
  Here is my code:</p>
  
  <pre><code>      while (list($key,$value) = each ($x))
          {
          Print "$key  =&gt; $value\n&lt;br&gt;\n";
          }
  </code></pre>
  
  <p>This works well to display the keys of the main array. what I get is :</p>
  
  <pre><code>visitors =&gt; Array 
  actions =&gt; Array 
  actions-average =&gt; Array 
  time-average =&gt; Array 
  pages-entrance =&gt; Array
  </code></pre>
  
  <p>What I want is the visitors and the value (number of visitors), value of actions, etc.
  I want to then save the value in Mysql. Some I will have to convert from a string to and int or date. </p>
  
  <p>I need to list one more level deep. But I cannot see how to do this. 
  --------------Added -----------
  So what I have is an array of arrays. I need to step through each array. </p>