Hi all,
Here have a question would likes to ask those whom expericed the OOP structure in php.
If I have a global variable which name
global $sConn;(where $sConn is a object)
How I going to declare this in a class? Because currently, each time I need to connect with this object, I need to declare global $sConn in each function within a class.
Thank you.