isset($_COOKIE[$var1 . $var2]) isset($HTTP_COOKIE_VARS[$var1 . $var2]) // (for ancient PHP versions)
http://www.php.net/manual/en/features.cookies.php or isset(${$var1 . $var2}) http://www.php.net/manual/en/language.variables.variable.php bvr. BUDINSCHI Cosmin wrote: >On Fri, 15 Mar 2002, Julio Nobrega Trabalhando wrote: > >:>if (isset($var_name)) { >:> echo 'Isset!'; >:>} >:> >:> ? > > This I knew ... i don't know the variable's name untill I execute >the script. > I want to found out if a cookie is set who's name is $var1.$var2 >and $var2 is the result of a function. >:>> >:>> >:>> I have a variable with the name >:>> $name(="the_name_of_the_variable") >:>> >:>> and I want to know if $the_name_of_the_variable >:>> is set. >:>> > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php