Re: [PHP] endless while loop

2005-01-06 Thread Gunter Sammet
"Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Thursday 06 January 2005 05:17, Gunter Sammet wrote: > >> I am having some trouble getting the following code to work: >> >> if (is_array($bundle_attributes)) { >> >> reset($bundle_attributes); >> >> while (list($option,

Re: [PHP] endless while loop

2005-01-06 Thread Jason Wong
On Thursday 06 January 2005 05:17, Gunter Sammet wrote: > I am having some trouble getting the following code to work: > > if (is_array($bundle_attributes)) { > > reset($bundle_attributes); > > while (list($option, $value) = each($bundle_attributes)) { > > reset($value); > > while (list($option2,

[PHP] endless while loop

2005-01-05 Thread Gunter Sammet
Hi all: I am having some trouble getting the following code to work: if (is_array($bundle_attributes)) { reset($bundle_attributes); while (list($option, $value) = each($bundle_attributes)) { reset($value); while (list($option2, $value2) = each($value)) { $this->contents[$products_id]['attribu