Re: function()

From: Date: Tue, 05 Nov 2002 16:44:07 +0000
Subject: Re: function()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-122794@lists.php.net to get a copy of this message
On Tuesday 05 November 2002 23:56, Francisco Vaucher wrote: > This doesn't work. I need to get some variables values out of the function. > Is there a way to make te variables defined in the function 'global' ? So I > can use them after the function call. Declare them as global: <? doo(123); echo $dah; function doo($param) { global $dah; $dah = $param * $param; } ?>

« previous php.general (#122794) next »