diff options
author | Sam Ruby <rubys@php.net> | 2000-05-21 11:26:26 +0000 |
---|---|---|
committer | Sam Ruby <rubys@php.net> | 2000-05-21 11:26:26 +0000 |
commit | 767ea7a7e4a94afdabc8088e9083eb8ff1598a0c (patch) | |
tree | 7cdec21aaabecfef5077627f815644c08a867bcb /sapi | |
parent | f3656652139b8e902cf7de1c3faa78d3abad0d9e (diff) | |
download | php-git-767ea7a7e4a94afdabc8088e9083eb8ff1598a0c.tar.gz |
use simpler foreach instead of while
Diffstat (limited to 'sapi')
-rw-r--r-- | sapi/servlet/cookies.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/servlet/cookies.php b/sapi/servlet/cookies.php index 21c765c8a8..bcc4c40aae 100644 --- a/sapi/servlet/cookies.php +++ b/sapi/servlet/cookies.php @@ -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"; } } |