[PHP-WIN] Re: testing for value in $HTTP_COOKIE_VARS

2002-04-03 Thread Steve Yates
To follow up with the group, I received an answer via e-mail within a few minutes with two methods (thanks AB). (1) $foo = @$HTTP_COOKIE_VARS["foo"]; # Where the @ suppresses the warnings on the call. if ($foo) { } (2) The one I ended up using (modified a bit): if ((isset($HTTP_COOKIE_VARS[

[PHP-WIN] Re: testing for value in $HTTP_COOKIE_VARS

2002-04-03 Thread Steve Yates
"Steve Yates" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is there a better way to test for a cookie's existence > besides in_array()? To perhaps clarify I should say "...test for a variable's existence..." - Steve Yates - To know recursion, you must