日期:2014-05-17  浏览次数:20386 次

关于设置及读取cookie的问题
<?php
setcookie("cookie[three]","cookiethree");
setcookie("cookie[two]","cookietwo");
setcookie("cookie[one]","cookieone");

// 输出 cookie (在重载页面后)
if (isset($_COOKIE["cookie"]))
  {
  foreach ($_COOKIE["cookie"] as $name => $value)
  {
  echo "$name : $value <br />";
  }
  }
?>

<html>
<body>

...
...


请问foreach ($_COOKIE["cookie"] as $name => $value) 中的$name => $value是什么意思?