note 93890 added to language.oop5.overloading

From: Date: Mon, 05 Oct 2009 17:59:24 +0000
Subject: note 93890 added to language.oop5.overloading
Groups: php.notes 
Request: Send a blank email to php-notes+get-161371@lists.php.net to get a copy of this message
It says in the documentation that assignment chaining does not work with the __set() function like this: <?php $a = $foo->b = 3; ?> If you still want to make it work, I suppose you can just turn the variables around: <?php $foo->b = $a = 3; ?> ---- Server IP: 217.160.72.57 Probable Submitter: 88.69.41.205 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.overloading.php Edit -- https://master.php.net/note/edit/93890 Del: integrated -- https://master.php.net/note/delete/93890/integrated Del: useless -- https://master.php.net/note/delete/93890/useless Del: bad code -- https://master.php.net/note/delete/93890/bad+code Del: spam -- https://master.php.net/note/delete/93890/spam Del: non-english -- https://master.php.net/note/delete/93890/non-english Del: in docs -- https://master.php.net/note/delete/93890/in+docs Del: other reasons-- https://master.php.net/note/delete/93890 Reject -- https://master.php.net/note/reject/93890 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#161371) next »