Re: function()

From: Date: Wed, 06 Nov 2002 05:05:20 +0000
Subject: Re: function()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-122937@lists.php.net to get a copy of this message
On Wednesday 06 November 2002 08:48, Justin French wrote: > Doesn't 'global' only get variables from outside the function into it???? > OP (I think) wanted the variables within the function to work outside it. Kind of. What it really does is 'link' the global'ed variable into the global scope. Thus whatever you do to the global'ed variable inside the function is equivalent to as if it had been done outside of the function. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Me no internet, only janitor, me just wax floors. */

« previous php.general (#122937) next »