note 34205 added to ref.http
| From: | mazsolt at yahoo dot com | Date: | Fri, 18 Jul 2003 07:58:07 +0000 |
| Subject: | note 34205 added to ref.http | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-52328@lists.php.net to get a copy of this message | ||
You can access the elements of an array either with {} or with []. But with cookie arrays it works
only the []
setcookie("a{1}",1,time()+100);
setcookie("a{2}",1,time()+100);
setcookie("aa[1]",1,time()+100);
setcookie("aa[2]",1,time()+100);
You will have three cookies:
$_COOKIE["a{1}"], $_COOKIE["a{2}"] and the $_COOKIE["aa"] array
----
Manual Page -- http://www.php.net/manual/en/ref.http.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34205
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34205&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34205&report=yes