php - global variables inside all class functions
<p>What is the best way to get a global variable inside a class?</p>

<p>I know I can easily just use "global $tmpVar;" inside a class function but is there a way to global the variable so it is available for all functions in a class without needing the ugly global $tmpVar; inside each function?</p>

<p>Ideally right after the "class tmpClass() {" declaration would be great, but not sure if this is possible.</p>
