Re: Array... Parent IDs

From: Date: Tue, 08 Apr 2003 17:28:14 +0000
Subject: Re: Array... Parent IDs
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-142923@lists.php.net to get a copy of this message
That sort of helps... I still need a way to get them into seperate arrays, not one huge one. Is there a way to group them, like split an array every third entry? -Michael On Tue, 2003-04-08 at 09:03, Burhan Khalid wrote: > On Tue, 2003-04-08 at 11:51, Michael Smith wrote: > > > This is untested, but it should do what you want : > > > > > > > > > while(list($key,$val) = each ($_tmpArray)) > > > { > > > if (is_array($val)) > > > { > > > while (list($k,$v) = each ($val)) > > > { > > > > > > if ($k == "product_id" && !is_array(${"pid_$v"}) > ah crap -- forgot a ) should be })) > > > > I get an error here: parse error, unexpected '{'? PLEASE HELP! > > -- Michael Smith <msmith@custom87.net> Custom87.net

« previous php.general (#142923) next »