![]() |
|
|
+ Search |
![]()
|
Aug 4th, 1999 08:16
Nathan Wallace, John Coggeshall, Teodor Cimpoesu, Rasmus Lerdorf
Say you have something like this:
$myarray['a'] = 'a';
$myarray['b'] = 'b';
$myarray['c'] = 'c';
and do this:
reset($myarray);
while(list($key, $val) = each($myarray)) echo "Key: $key<br>";
It will print
Key: a
Key: b
Key: c
This first in first out order is guaranteed.