NYCPHP Meetup

NYPHP.org

[nycphp-talk] How to create a singleton class in PHP

jon baer jonbaer at jonbaer.net
Thu Feb 12 12:44:31 EST 2004


racking my brain ... besides being cleaner why did your class work?  i didnt
see anything wrong w/ what he did (but it didn't work on multiple objects)
...

- jon

----- Original Message -----
From: "Dan Cech" <dcech at phpwerx.net>
To: "NYPHP Talk" <talk at lists.nyphp.org>
Sent: Thursday, February 12, 2004 12:34 PM
Subject: Re: [nycphp-talk] How to create a singleton class in PHP


> What you want is:
>
> class ActionHandler {
>    function &getErrorArray () {
>      return ActionHandler::setErrorArray ();
>    }




More information about the talk mailing list