note 84189 deleted from language.oop5.overloading by danielc

From: Date: Fri, 28 Aug 2009 03:38:08 +0000
Subject: note 84189 deleted from language.oop5.overloading by danielc
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-159975@lists.php.net to get a copy of this message
Note Submitter: daveb at spamless dot davebeta dot com Reason: 0 ---- In reply to uramihsayibok, gmail, com: The PHP behaviour is the behaviour I would expect. You are assigning a value to a property: $obj->a=$b works just the same as $a=$b and I would expect both these expressions to evaluate to $b. The __set() method is used behind the scenes. As a programmer using the class I might not be aware __set() is used unless I originally wrote the class. The return value of __set() is quite rightly ignored.

« previous php.notes (#159975) next »