Php Cookie的一个使用注意点

复制代码 代码如下:

  <?php

  setcookie('test', 'this is a cookie test');

  echo ($_COOKIE['test']);

  ?>

上面代码,并不会显示你想要的结果