RE: [PHP] using variables in a function within a fuction

2002-06-25 Thread John Holmes
> function test1() > {$hello="hello";} > > function test2() > {test1(); > print $hello;} > > test2(); > > ?> > This should print hello. But it does'nt work. Any idea? Read here to find out why: http://www.php.net/manual/en/language.variables.scope.php ---John Holmes... -- PHP General Mai

Re: [PHP] using variables in a function within a fuction

2002-06-24 Thread Michael P. Carel
OTECTED]] > Sent: Tuesday, June 25, 2002 3:14 PM > To: php > Subject: [PHP] using variables in a function within a fuction > > > Hi to all, > Have problem with this. Im want to use a variable in a function into another > function. such as: > > function test1() > {$hello=&q

RE: [PHP] using variables in a function within a fuction

2002-06-24 Thread Martin Towell
or make it (argh) global -Original Message- From: Michael P. Carel [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 25, 2002 3:14 PM To: php Subject: [PHP] using variables in a function within a fuction Hi to all, Have problem with this. Im want to use a variable in a function into

[PHP] using variables in a function within a fuction

2002-06-24 Thread Michael P. Carel
Hi to all, Have problem with this. Im want to use a variable in a function into another function. such as: This should print hello. But it does'nt work. Any idea? Regards mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php