Re: Using a string from another function

From: Date: Mon, 06 Nov 2000 04:21:39 +0000
Subject: Re: Using a string from another function
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-23839@lists.php.net to get a copy of this message
At 08:06 PM 5/11/2000, you wrote:
It sounds like you're not using global in the receiving function--it needs to be used on any variable, inside any function, which it to be imported into the function's scope from the global scope.
Ahhhhh, thats the sucker I wasnt doing. (this is my first effort with global). I didnt realise I also had to set the required strings using global in the other functions too. Seems to be working like a charm now. Because I was able to access $color1 and $color2 from within the main php file, I figured that I could also call upon it from an included files functions. Cheers Lars and to all Chris

« previous php.general (#23839) next »