php7中如何設置COOKIE和銷燬COOKIE
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"];