1 year ago

How to call a class only once (global variable scope)

Posted 1 year ago by sos99

on clean project in php (without framework), i have class that i need available in all classes (for example log, db) , what is the best OOP way to do it available without global variable or call to new object all the time ?

Please sign in or create an account to participate in this conversation.