Re: stdClass

From: Date: Fri, 27 Feb 2004 14:01:43 +0000
Subject: Re: stdClass
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-8218@lists.php.net to get a copy of this message
It would be nice to have a base class to inherit some special methods as we do in Java. The same as method overloading, one of the most important aspects missing in PHP5 and the new object model. Thanks. ----- Original Message ----- From: "Stephan Schmidt" <schst@php-tools.net> Newsgroups: php.internals To: "'Jakes'" <sunssoffun@hotmail.com> Cc: <internals@lists.php.net> Sent: Friday, February 27, 2004 3:46 PM Subject: RE: [PHP-DEV] stdClass > Hi, > > > > Please can some explain to me what the stdClass is used for in > > > PHP 5. I've tried to use the reflection API to reverse engineer it > > > but it does not give you much on the stdClass > > No. There is no such thing as Java's base class built into PHP. > > stdClass is just an empty "dummy class" that is used internally, for > > example if you cast an array to an object. You can also use > > stdClass if > > you need an object of no particular class. > > Just one thing to add: > It has been also available in PHP4. > > Stephan

« previous php.internals (#8218) next »