Use an instance of an object throughout the site with PHP
Posted
by steamboy
on Stack Overflow
See other posts from Stack Overflow
or by steamboy
Published on 2010-04-28T18:30:10Z
Indexed on
2010/04/28
18:37 UTC
Read the original article
Hit count: 255
Hello Guys,
How will I use an instance of an object that is initially loaded throughout the whole site?
I want $myinstance to be used everywhere.
$myinstance = new TestClass();
Thanks!
© Stack Overflow or respective owner