Answer the question
In order to leave comments, you need to log in
How to get rid of global variables in php?
So, I wrote CMS for a long time, there are language files, a settings file and a bunch of plug-in files with functions.
In a huge amount of code, global variables are written for the same language or some function settings.
Is there an alternative to global, or are there other PHP features?
Answer the question
In order to leave comments, you need to log in
How to get rid of global variables in php?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question