Home  >  Article  >  Backend Development  >  关于设置及读取cookie的有关问题

关于设置及读取cookie的有关问题

WBOY
WBOYOriginal
2016-06-13 10:59:01897browse

关于设置及读取cookie的问题
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
";
  }
  }
?>




...
...


请问foreach ($_COOKIE["cookie"] as $name => $value) 中的$name => $value是什么意思?
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn