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
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to