Home >Backend Development >PHP Tutorial >A note on using Php Cookie_PHP Tutorial

A note on using Php Cookie_PHP Tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-21 15:49:05968browse

Copy code The code is as follows:

setcookie('test', 'this is a cookie test') ;
echo ($_COOKIE['test']);
?>
The above code will not display the results you want

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/319601.htmlTechArticleCopy the code as follows: ?php setcookie('test', 'this is a cookie test'); echo ( $_COOKIE['test']); ? The above code will not display the results you want...
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