This one drove me nuts for a while so here is how to work with global scope in PHP classes. From within one function, if you want a variable of any sort to be globally visible, then you must use the keyword global, like this: Now just because you’ve declared...