Re: [PHP] create multidimensional array with n depth

2006-08-09 Thread Robert Cummings
On Wed, 2006-08-09 at 14:14 -0400, [EMAIL PROTECTED] wrote: > My brain is really fried right now and I'm sure someone has a more indepth > answer/opinion on this subject, but it occurs to me that you can get away > from using eval() if you do some kind of recursive function using: > > $temp[] =

Re: [PHP] create multidimensional array with n depth

2006-08-09 Thread tg-php
My brain is really fried right now and I'm sure someone has a more indepth answer/opinion on this subject, but it occurs to me that you can get away from using eval() if you do some kind of recursive function using: $temp[] = array($arrval1, $arrval2,...); and $arrval1 could == array($arr2val1

Re: [PHP] create multidimensional array with n depth

2006-08-09 Thread Jochem Maas
Gunter Sammet wrote: > Hi all: > I've been trying to create a multidimensional array with n depth in php. > Tried to use a recursive function passing array references by pointers but > seems like it's not possible or I still don't understand this subject > enough. Finally managed to get it going