sorry i\'m a beginner and i can\'t determine how good a question this is, maybe it sounds utterly obvious to some of you.
if our use of these two below is t
Pass in parameters, avoid globals. Keeping only the scope you need for a given situation is a measure of good code design. You may want to look at PHP variable scope...
http://php.net/manual/en/language.variables.scope.php
An excellent resource, with some pointers on what is best practices and memory management.