Re: Using Variable Variables...

From: Date: Fri, 27 Jul 2001 03:03:26 +0000
Subject: Re: Using Variable Variables...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-59865@lists.php.net to get a copy of this message
on 7/26/01 6:46 PM, php@swifte.net at php@swifte.net wrote: > $_VARIABLE_ = "chkContact".$i; > $_VAR_ = $$_VARIABLE_; > > How do I make this work when $chkContact is a global variable? This > returns an empty value because it does not see that $chkContact is a > global variable... > maybe try global $_VARIABLE_, $$_VARIABLE_; -- mike cullerton

« previous php.general (#59865) next »