note 84189 added to language.oop5.overloading

From: Date: Wed, 02 Jul 2008 16:36:21 +0000
Subject: note 84189 added to language.oop5.overloading
Groups: php.notes 
Request: Send a blank email to php-notes+get-141081@lists.php.net to get a copy of this message
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. ---- Server IP: 92.48.100.16 Probable Submitter: 80.169.49.130 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.overloading.php Edit -- https://master.php.net/note/edit/84189 Del: integrated -- https://master.php.net/note/delete/84189/integrated Del: useless -- https://master.php.net/note/delete/84189/useless Del: bad code -- https://master.php.net/note/delete/84189/bad+code Del: spam -- https://master.php.net/note/delete/84189/spam Del: non-english -- https://master.php.net/note/delete/84189/non-english Del: in docs -- https://master.php.net/note/delete/84189/in+docs Del: other reasons-- https://master.php.net/note/delete/84189 Reject -- https://master.php.net/note/reject/84189 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#141081) next »