Re: Array Question

From: Date: Fri, 19 Apr 2002 12:32:50 +0000
Subject: Re: Array Question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-93673@lists.php.net to get a copy of this message
On Thursday, April 18, 2002, at 05:38 PM, Jason Lam wrote:
But, $arr1[0] = 1; $arr1[1] = 10; $arr2[0] = $arr1; $arr3 = each($arr2); print $arr3[1]; Result is not 10. So, function "each" is not taking the whole $arr2[0] out...... My question is what function should I use to iterate array elements (with arrays in it)?
$arr3 = (list($arr3) = each($arr2)); I think. Untested. ---- Erik Price Web Developer Temp Media Lab, H.H. Brown pricee@hhbrown.com

« previous php.general (#93673) next »