1,如何設定COOKIE
setcookie ( string $name [, string $value = "" [, int $expire = 0 [, string $path = "" [, string $domain = "96net.com.cn" [, bool $secure = false [, bool $httponly = false ]]]]]] ) : bool
setrawcookie() 再設定值時候原樣輸出
2,銷毀COOKIE
setcookie("TestCookie", $value, time()-3600);
3,獲取COOKIE值
echo $_COOKIE["TestCookie"];以上就是PHP7中建立COOKIE和銷毀COOKIE的方法的詳細內容,更多請關注TW511.COM其它相關文章!