cvs: php4 /sapi/servlet/ cookies.php

[email protected] ("Sam Ruby")
Newsgroups php.version4
Message-ID <cvsrubys958908384@cvsserver>
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";
     }
   }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.