note 8761 added to Predefined variables

From: Date: Wed, 27 Sep 2000 13:12:07 +0000
Subject: note 8761 added to Predefined variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-5475@lists.php.net to get a copy of this message
With the $HTTP_COOKIES, it's not a variable, but an associative array. If you have bar=bar321 and foo=foo123 set as cookies, then $HTTP_COOKIES would yield something like this: $HTTP_COOKIES = array( foo => 'foo123', bar => 'bar321' ); and not an actual string. If you used: echo $HTTP_COOKIES; it would most likely print to the browser "Array" rather than "foo=foo123; bar=bar321". At least, that's how I understand the $HTTP_COOKIES variable. http://www.php.net/manual/language.variables.predefined.php

« previous php.notes (#5475) next »