What exactly is the difference between the GLOBAL and STATIC variables in PHP? And which one is preferable to use, when we want to use a variable in multiple functions?
Global is used to get the global vars which may be defined in other scripts, or not in the same scope.
e.g.
Static is used to define an var which has whole script life, and init only once.