using array to declare globals in function?

From: Date: Fri, 24 May 2002 21:21:35 +0000
Subject: using array to declare globals in function?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-99163@lists.php.net to get a copy of this message
Anyone know how to declare globals in a function from an array? The following doesn't seem to work: foreach($_POST as $key => $value) global $form_var[$key]; Thanks for any help! Jeff

« previous php.general (#99163) next »