RE: [PHP] Question regarding :: syntax

From: Date: Mon, 03 Jun 2002 16:57:34 +0000
Subject: RE: [PHP] Question regarding :: syntax
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-100430@lists.php.net to get a copy of this message
On Mon, 2002-06-03 at 12:45, Jared Boelens wrote: > So am i to understand that i will have to do it in this manner? *SNIP* No no no... B extends A, and you have an instance of B. Just do this: class A { var $b; *snip* } class B { function B($b) { $this->b = $b; } } That will work fine. Regards, Toby

« previous php.general (#100430) next »