Array Question

From: Date: Thu, 18 Apr 2002 21:38:41 +0000
Subject: Array Question
Groups: php.general 
Request: Send a blank email to php-general+get-93608@lists.php.net to get a copy of this message
$arr2 is a 2d array. $arr1[0] = 1; $arr1[1] = 10; $arr2[0] = $arr1; print $arr2[0][1]; Result will be 10 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)? Jay

« previous php.general (#93608) next »