quick globalisation?

From: Date: Mon, 23 Aug 2004 15:31:34 +0000
Subject: quick globalisation?
Groups: php.general 
Request: Send a blank email to php-general+get-194477@lists.php.net to get a copy of this message
Is there a quicker way to globalise something other than: $a = 'foo'; $b = 'bah'; ... $GLOBALS['a'] = $a; $GLOBALS['b'] = $b; ?? I was hoping for something like $a = 'foo'; $b = 'bah'; ... makeGlobal('a','b') /*or*/ makeGlobal($a,$b); --- Justin French http://indent.com.au

« previous php.general (#194477) next »