use simpler foreach instead of while

This commit is contained in:
Sam Ruby 2000-05-21 11:26:26 +00:00
parent f365665213
commit 767ea7a7e4

View File

@ -16,7 +16,7 @@
} else { } else {
echo "Your browser is sending the following cookies:<br>\n"; echo "Your browser is sending the following cookies:<br>\n";
while (list($i,$cookie) = each($cookies)) { foreach ($cookies as $cookie) {
echo "Cookie Name: $cookie->name<br>Cookie value: $cookie->value<br>\n"; echo "Cookie Name: $cookie->name<br>Cookie value: $cookie->value<br>\n";
} }
} }