sclewin
New Member
- Messages
- 88
- Reaction score
- 0
- Points
- 0
Hi all,
I'm currently designing a page and I am making use of PHP. I have noticed more and more I am depending on making variables global in the functions I create. I find using global variables to be very easy to use and work well. My question is using globals in PHP evil at all. Are there any problems I could run into for using globals or are globals considered bad programming practice at all?
I'm currently designing a page and I am making use of PHP. I have noticed more and more I am depending on making variables global in the functions I create. I find using global variables to be very easy to use and work well. My question is using globals in PHP evil at all. Are there any problems I could run into for using globals or are globals considered bad programming practice at all?