note 97245 deleted from function.setcookie by danbrown
| From: | danbrown@php.net | Date: | Fri, 09 Apr 2010 20:58:03 +0000 |
| Subject: | note 97245 deleted from function.setcookie by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-168095@lists.php.net to get a copy of this message | ||
Note Submitter: Koren
----
Instead of using foreach to read the information from "array" cookie you can use following
code:
setcookie("cookie[one]", "cookieone");
echo $_COOKIE["cookie"]["one"];