Re: [PHP] Pushing to Multidimensional Arrays.

2001-05-15 Thread Christian Reiniger
On Tuesday 15 May 2001 11:44, Nick Davies wrote: > How do i do this? > > I have tried using the array_push function without sucess and when i > try this : > > $stack[]['id'] = $menuArray[$rowID]['id']; > $stack[]['parentId'] = $menuArray[$rowID]['parentId']; > $stack[]['name'] = $menuArray[$rowID]

[PHP] Pushing to Multidimensional Arrays.

2001-05-15 Thread Nick Davies
How do i do this? I have tried using the array_push function without sucess and when i try this : $stack[]['id'] = $menuArray[$rowID]['id']; $stack[]['parentId'] = $menuArray[$rowID]['parentId']; $stack[]['name'] = $menuArray[$rowID]['name'];A obviously the array's internal pointer will increm