Re: How to use multiple cookie statements
| From: | Curt Zirzow | Date: | Tue, 13 Jul 2004 03:17:51 +0000 |
| Subject: | Re: How to use multiple cookie statements | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-190307@lists.php.net to get a copy of this message | ||
* Thus wrote Jason Barnett:
> Or if you feel lazy... then you can use serialize / unserialize.
I'll be even lazier...
setcookie('foo[bar]', 'is ok');
setcookie('foo[qaz]', 'is better');
// after cookie is set.
$myFoo = $_COOKIE['foo'];
print_r($myFoo);
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!