note 93890 deleted from language.oop5.overloading by cmb
| From: | cmb@php.net | Date: | Sun, 18 Dec 2016 10:04:51 +0000 |
| Subject: | note 93890 deleted from language.oop5.overloading by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-208657@lists.php.net to get a copy of this message | ||
Note Submitter: Franz
----
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;
?>