Re: Re: Help - Variables

From: Date: Fri, 15 Mar 2002 17:12:43 +0000
Subject: Re: Re: Help - Variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-88676@lists.php.net to get a copy of this message
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. :>>


« previous php.general (#88676) next »