note 85436 modified in language.oop5.overloading by danbrown

From: Date: Fri, 14 Nov 2008 17:13:00 +0000
Subject: note 85436 modified in language.oop5.overloading by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-146539@lists.php.net to get a copy of this message
There's nothing wrong with calling these functions as normal functions: If you end up in a situation where you need to know the return value of your __set function, just write <?php $a = $obj->__set($var, $val); ?> instead of <?php $a = $obj->$var = $val; ?>. --was-- There's nothing wrong with calling these functions as normal functions: If you end up in a situation where you need to know the return value of your __set function, just write <? $a = $obj->__set($var, $val); ?> instead of <? $a = $obj->$var = $val; ?>. http://php.net/manual/en/language.oop5.overloading.php

« previous php.notes (#146539) next »