Using variable in two functions
As a matter of good coding practice, global variables are problematic at best, dangerous at worst. They should be avoided if at all possible. Why? Because what if some other plugin developer also decides to define$a as a global? Whatever that plugin is doing will now overwrite your global $a and yours has the potential … Read more