Home >Backend Development >PHP Tutorial >Php Cookie的一个使用注意点_php技巧

Php Cookie的一个使用注意点_php技巧

WBOY
WBOYOriginal
2016-05-17 09:34:281531browse
复制代码 代码如下:

setcookie('test', 'this is a cookie test');
echo ($_COOKIE['test']);
?>
上面代码,并不会显示你想要的结果
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