Lars Strojny wrote: >> I've not seen plenty of "Class::singleton()" myself, getInstance is an >> accepted standard in all languages, including the PHP code I wrote, >> and I've had experience with. > > That's my point, yes. pecl_http uses ::singleton() instead of > getInstance().
Well, sure--that depends. PEAR for example defined ::singleton() as the standard name and most of the code I've dealt with at that time used ::singleton() either. I guess this is merely a matter of taste, respectively what's PHP going to use in the future. Regards, Mike -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php