关于设置及读取cookie的有关问题
程序员文章站
2024-02-17 14:43:10
...
关于设置及读取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是什么意思?
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是什么意思?
相关文章
相关视频
上一篇: 福利彩票幸运号码自动生成器_PHP
下一篇: 大牛们美,php新手问几个面试题