cvs: php4 /sapi/servlet/ cookies.php
| From: | Sam Ruby | Date: | Sun, 21 May 2000 11:26:24 +0000 |
| Subject: | cvs: php4 /sapi/servlet/ cookies.php | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-15307@lists.php.net to get a copy of this message | ||
rubys Sun May 21 13:26:24 2000 EDT
Modified files:
/php4/sapi/servlet cookies.php
Log:
use simpler foreach instead of while
Index: php4/sapi/servlet/cookies.php
diff -u php4/sapi/servlet/cookies.php:1.3 php4/sapi/servlet/cookies.php:1.4
--- php4/sapi/servlet/cookies.php:1.3 Thu Mar 9 14:07:24 2000
+++ php4/sapi/servlet/cookies.php Sun May 21 13:26:24 2000
@@ -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";
}
}