how to get data from an array inside a recursive array?
<p>Say I create a recursive array with this code:</p>

<pre><code>$digits = 0;
$tens = 0;
$hundreds = 0;

for($i = 0; $i &lt;= 100; $i++)
{
    $myArray[$hundreds][$tens][$digits] = $i;

    $digits++;
    if($digits &gt; 9)
    {
        $digits = 0;
        $tens++;
    }

    if($tens &gt; 9)
    {
        $tens = 0;
        $hundreds++;
    }
}
</code></pre>

<p>how could I echo out all the data fromt the <code>'tens array' == 2</code>?</p>

<p>To be clear, I'd be looking for these results:</p>

<pre><code>20 21 22 23 24 25 26 27 28 29
</code></pre>

<p>since im using base 10, I could just do this:</p>

<pre><code>for($i=0; $i &lt; 10; $i++)
{
  echo $myArray[0][2][$i]
}
</code></pre>

<p>but what if i have no idea how many elements are in the digits array?</p>
