count returning the size of the first cell in the array and not the size of the entire array
<p>I have an array <code>$all_orders</code> which contains arrays, the $temp_array contains every iteration after explode a string composed of <code>8</code> words, and <code>$handle</code> is composed of <code>3 lines</code> in the file:</p>

<pre><code>while(!feof($handle))
{
  $order=fgets($handle);
  $temp_array=explode(",",$order);
  array_push($all_orders,$temp_array);
}
</code></pre>

<p>Now when i try to count the <code>$all_orders</code> array elements (which is supposed to be 3), i get simply 8:</p>

<pre><code>echo count($all_orders);// display 8
</code></pre>

<p>why didn't i get 3 ?</p>

<p><strong>EDIT:</strong></p>

<p>Here is the result i got when trying to print to content of the array:</p>

<pre><code>Array
(
    [0] =&gt; Array
        (
            [0] =&gt;

        )

    [1] =&gt; Array
        (
            [0] =&gt;

        )

    [2] =&gt; Array
        (
            [0] =&gt; 1
            [1] =&gt; 1
            [2] =&gt; chaine.com
            [3] =&gt; chaine
            [4] =&gt; chaine
            [5] =&gt; chaine
            [6] =&gt; chaine
            [7] =&gt; chaine

        )

    [3] =&gt; Array
        (
            [0] =&gt;

        )

    [4] =&gt; Array
        (
            [0] =&gt; 2
            [1] =&gt; 1
            [2] =&gt; chaine@fudd.com
            [3] =&gt; chaine.
            [4] =&gt; chaine
            [5] =&gt; chaine
            [6] =&gt; chaine
            [7] =&gt; chaine

        )

    [5] =&gt; Array
        (
            [0] =&gt;

        )

    [6] =&gt; Array
        (
            [0] =&gt; 3
            [1] =&gt; 2
            [2] =&gt; chaine@bunny.com
            [3] =&gt; chaine.
            [4] =&gt; chaine
            [5] =&gt; chaine
            [6] =&gt; chaine
            [7] =&gt; chaine

        )

    [7] =&gt; Array
        (
            [0] =&gt;
        )

)
</code></pre>
