From f417871e662ec035e3d307ae52f9c72744365a04 Mon Sep 17 00:00:00 2001 From: Daniel Convissor Date: Fri, 28 Aug 2009 03:22:29 +0000 Subject: [PATCH] Add a note about chaining assignments, responding to several user notes. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@287826 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/oop5/overloading.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/language/oop5/overloading.xml b/language/oop5/overloading.xml index 4ac676fa4e..470b39d498 100644 --- a/language/oop5/overloading.xml +++ b/language/oop5/overloading.xml @@ -132,6 +132,16 @@ static. + + + The return value of __set() is ignored + because of the way PHP processes the assignment operator. + Similarly, __get() is never called when + chaining assignemnts together like this: + b = 8; ]]> + + + overloading with __get, __set, __isset and __unset example