RE: [PHP] Question regarding :: syntax

From: Date: Mon, 03 Jun 2002 18:00:01 +0000
Subject: RE: [PHP] Question regarding :: syntax
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-100444@lists.php.net to get a copy of this message
That is exactly what I thought, I was just looking for some reassurance. I have been working with C# lately and the syntax for classes is a lot more explicit. I wanted to make sure I wasn't making a mistake on what PHP implcitly does. Thanks -Jared -----Original Message----- From: Tobyn Baugher [mailto:toby@rsux.com] Sent: Monday, June 03, 2002 1:58 PM To: php list Subject: RE: [PHP] Question regarding :: syntax On Mon, 2002-06-03 at 13:42, Jared Boelens wrote: > This may be a dumb question but, how can you be sure that the $this-> is > referring to the parent classes' property and not the current class. On > that note, does it really matter of which one it refers? B inherits $b from A. $this->b and "parent"->b are the exact same thing. This is why there's no special syntax to access "parent"->b from PHP. Toby -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#100444) next »