Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8215 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54776 invoked by uid 1010); 27 Feb 2004 13:43:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 54737 invoked from network); 27 Feb 2004 13:43:40 -0000 Received: from unknown (HELO kirin.trondheim.corp.yahoo.com) (80.203.112.31) by pb1.pair.com with SMTP; 27 Feb 2004 13:43:40 -0000 Received: from kirin.trondheim.corp.yahoo.com (kirin.trondheim.corp.yahoo.com [127.0.0.1]) by kirin.trondheim.corp.yahoo.com (8.12.8/8.12.5) with ESMTP id i1RDhuQd016075; Fri, 27 Feb 2004 14:43:56 +0100 Received: (from ssb@localhost) by kirin.trondheim.corp.yahoo.com (8.12.8/8.12.8/Submit) id i1RDhtMJ016073; Fri, 27 Feb 2004 14:43:55 +0100 To: Jakes Cc: internals@lists.php.net In-Reply-To: <20040227131639.99177.qmail@pb1.pair.com> References: <20040227131639.99177.qmail@pb1.pair.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Yahoo! Message-ID: <1077889435.1815.148.camel@kirin.trondheim.corp.yahoo.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Fri, 27 Feb 2004 14:43:55 +0100 Subject: Re: [PHP-DEV] stdClass From: stig@yahoo-inc.com ("Stig S. Bakken") On Fri, 2004-02-27 at 14:15, Jakes wrote: > 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 > > What methods can be inherited from this class? > > Does it work the same was as the java base class - Object? 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. - Stig