using variables in a function within a fuction

From: Date: Tue, 25 Jun 2002 05:14:07 +0000
Subject: using variables in a function within a fuction
Groups: php.general 
Request: Send a blank email to php-general+get-103718@lists.php.net to get a copy of this message
Hi to all, Have problem with this. Im want to use a variable in a function into another function. such as: <? function test1() {$hello="hello";} function test2() {test1(); print $hello;} test2(); ?> This should print hello. But it does'nt work. Any idea? Regards mike

« previous php.general (#103718) next »