Re: [PHP] globals in functions

2002-04-15 Thread Erik Price
On Saturday, April 13, 2002, at 01:37 PM, Paul Roberts wrote: > Is there a quick way to set all variables as global so that they are > avalible to a function, i'm doing an eval inside, so i need all the > submitted variables to be avalible, or do i have to decalre them > individualy. If you

RE: [PHP] globals in functions

2002-04-13 Thread Cal Evans
1: Globals are bad...m'kay. You should never use globals. If your function needs a variable, you should pass it in. There are exceptions to this rule but it's not a good idea to program normally this way. 2: Is this a form? It sounds (from the way you word it) that the variables are part of a fo