mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
use simpler foreach instead of while
This commit is contained in:
parent
f365665213
commit
767ea7a7e4
@ -16,7 +16,7 @@
|
||||
} else {
|
||||
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";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user