Construct a Multidimensional Array
<p>I am working in PHP with array iteration.</p>

<p>I have a multidimensional array like this:</p>

<pre><code>Array
(
    [1] =&gt; stdClass Object
        (
            [id] =&gt; 1
            [comments] =&gt; Testing the Data
            [stream_context_id] =&gt; 5
            [stream_entity_id] =&gt; 
            [class_id] =&gt; 1
            [parent_id] =&gt; 0
            [learnt_count] =&gt; 
            [rating_count] =&gt; 
            [abused_count] =&gt; 
            [created_by] =&gt; 1
            [created_datetime] =&gt; 
            [stream_context] =&gt; comments
            [name] =&gt; 
            [upload_path] =&gt; 
            [uploadby] =&gt; 
            [upload_time] =&gt; 
        )

    [2] =&gt; stdClass Object
        (
            [id] =&gt; 2
            [comments] =&gt; Testing the Data
            [stream_context_id] =&gt; 5
            [stream_entity_id] =&gt; 
            [class_id] =&gt; 1
            [parent_id] =&gt; 0
            [learnt_count] =&gt; 
            [rating_count] =&gt; 
            [abused_count] =&gt; 
            [created_by] =&gt; 1
            [created_datetime] =&gt; 
            [stream_context] =&gt; comments
            [name] =&gt; 
            [upload_path] =&gt; 
            [uploadby] =&gt; 
            [upload_time] =&gt; 
        )

)
</code></pre>

<p>Here the first index values i.e. 1 and 2 are the ids mentioned in their corresponding arrays.</p>

<p>I want the same multidimensional array with index values a 0 and 1 and so on.. i.e. the usual format of an array.</p>
