Ok this may be a simple/noobish question but can't figure out...
I have a class, wich i include in another php script.
So, i call for example $user->login, but if i want to create a function and use this variable $user or any other variable defined outside the function, i need to declare it GLOBAL inside the function.
Is there a way to declare it GLOBAL only one time, outside functions, instead to declare it in every function i need?