Re: [PHP] quick globalisation?

2004-08-24 Thread Curt Zirzow
* Thus wrote Justin French: > Jay, > > "global $a, $b, $c" is used for bringing global variables INTO the > scope of the function... what I'm after is a way of making localised > variables (in function) available outside of the function. http://www.php.net/) To unsubscribe, visit: http://www.p

Re: [PHP] quick globalisation?

2004-08-24 Thread Justin Patrin
On Tue, 24 Aug 2004 12:21:03 +1000, Justin French <[EMAIL PROTECTED]> wrote: > Jay, > > "global $a, $b, $c" is used for bringing global variables INTO the > scope of the function... what I'm after is a way of making localised > variables (in function) available outside of the function. > > Justin

Re: [PHP] quick globalisation?

2004-08-23 Thread Justin French
Jay, "global $a, $b, $c" is used for bringing global variables INTO the scope of the function... what I'm after is a way of making localised variables (in function) available outside of the function. Justin On 24/08/2004, at 1:38 AM, Jay Blanchard wrote: [snip] Is there a quicker way to globalis

RE: [PHP] quick globalisation?

2004-08-23 Thread Jay Blanchard
[snip] 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); [/snip] According to http://us3.php.net/language.var

[PHP] quick globalisation?

2004-08-23 Thread Justin French
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 -- PHP General Mailing Li