Forum Moderators: coopster
Is there a downside to declaring all those global variables at any given time if I'm not using them all? Keeping in mind that on one page I may use a few of them, and on another page use a different few.
Just a question I've had and I just saw mention of globals from within functions on a different thread which prompted me to finally ask.
R
If you are finding that you are using globals more and more often have you considered object oriented programming [php.net]?
As to the Globals thing... I don't have SOO many that it would start getting confusing, And I have a pretty good method for keeping them seperated, but it is easy to see how a person could trip him/her self up with too many of them floating around.
Thanks... Russ