RE: [PHP] Global Annoyance
| From: | Jason Murray | Date: | Mon, 18 Dec 2000 21:55:58 +0000 |
| Subject: | RE: [PHP] Global Annoyance | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-30936@lists.php.net to get a copy of this message | ||
> I would like to have all of my variables available globally
> unless I specify otherwise. If I wanted to make a second
> mail function I would have to declare all of these
> variables all over again. I have had to declare the same
> variable 5 times in 5 different functions.
> Let me know if anyone knows a better way to do this.
Just a silly thought here, but did you think of writing the functions
to accept input variables?
Jason
--
Jason Murray
jasonm@melbourneit.com.au
Web Design Team, Melbourne IT
Fetch the comfy chair!