{[ .singleton | 1.hilite(=php=) ]}
Example
{[ .example | 1.hilite(=php=) ]}
Results
Now C holds world
Now A holds 3
Now AA holds world10
Now A holds 5
Now AA holds 5
AA() is A() ? No
Singleton::instance(‘A’) is A() ? Yes
Andrea Ercolino, Software Engineer
{[ .singleton | 1.hilite(=php=) ]}
Example
{[ .example | 1.hilite(=php=) ]}
Results
Now C holds world
Now A holds 3
Now AA holds world10
Now A holds 5
Now AA holds 5
AA() is A() ? No
Singleton::instance(‘A’) is A() ? Yes