Sample of the array after a recursive function
After some recursive function I have an array:

**first iteration:**
Array ( [category_id] => 3 [title] => Aqua [parent] => 0 ) )

**second:**
Array ( [category_id] => 5 [title] => Sea aqua [parent] => 3 ) Array ( [category_id] => 3 [title] => Aqua [parent] => 0 ) )

and so on...

How can I show only one array where [parent] => 0  ?
Sample of the array after a recursive function
===

After some recursive function I have an array:

**first iteration:**
Array ( [category_id] => 3 [title] => Aqua [parent] => 0 ) )

**second:**
Array ( [category_id] => 5 [title] => Sea aqua [parent] => 3 ) Array ( [category_id] => 3 [title] => Aqua [parent] => 0 ) )

and so on...

How can I show only one array where [parent] => 0  ?