PHP Array problem
<pre><code>array(
   array('codcentrocustos' =&gt; 1, 'codparent' =&gt; null, 'name' =&gt; 'lorem ipsum'),
   array('codcentrocustos' =&gt; 2, 'codparent' =&gt; 1, 'name' =&gt; 'lorem ipsum1'),
   array('codcentrocustos' =&gt; 3, 'codparent' =&gt; 1, 'name' =&gt; 'lorem ipsum2'),
   array('codcentrocustos' =&gt; 4, 'codparent' =&gt; 2, 'name' =&gt; 'lorem ipsum3'),
   array('codcentrocustos' =&gt; 5, 'codparent' =&gt; 3, 'name' =&gt; 'lorem ipsum4'),
   array('codcentrocustos' =&gt; 6, 'codparent' =&gt; null, 'name' =&gt; 'lorem ipsum5'),
);
</code></pre>

<p>Hey guys, i have this array, i need to transform it into an json, but i didnt have anyproblem at this point. The problem its related to what the php its making with it when its needed.</p>

<p>if i try to do an var_dump on he, he return it to me:</p>

<pre><code>array
  0 =&gt; 
    array
      'codcentrocustos' =&gt; int 1
      'codparent' =&gt; null
      'name' =&gt; string 'lorem ipsum' (length=11)
  1 =&gt; 
    array
      'codcentrocustos' =&gt; int 2
      'codparent' =&gt; int 1
      'name' =&gt; string 'lorem ipsum1' (length=12)
  2 =&gt; 
    array
      'codcentrocustos' =&gt; int 3
      'codparent' =&gt; int 1
      'name' =&gt; string 'lorem ipsum2' (length=12)
  3 =&gt; 
    array
      'codcentrocustos' =&gt; int 4
      'codparent' =&gt; int 2
      'name' =&gt; string 'lorem ipsum3' (length=12)
  4 =&gt; 
    array
      'codcentrocustos' =&gt; int 5
      'codparent' =&gt; int 3
      'name' =&gt; string 'lorem ipsum4' (length=12)
  5 =&gt; 
    array
      'codcentrocustos' =&gt; int 6
      'codparent' =&gt; null
      'name' =&gt; string 'lorem ipsum5' (length=12)
</code></pre>

<p>The problem its that i need my array without these refference numbers as </p>

<pre><code>array
  **0 =&gt;** 
    array
      'codcentrocustos' =&gt; int 1
      'codparent' =&gt; null
      'name' =&gt; string 'lorem ipsum' (length=11)
  **1 =&gt;** 
</code></pre>
