note 74443 added to function.unset

From: Date: Wed, 11 Apr 2007 18:04:30 +0000
Subject: note 74443 added to function.unset
Groups: php.notes 
Request: Send a blank email to php-notes+get-125304@lists.php.net to get a copy of this message
(PHP 5.2.0) There is undocumented support to overload behavior of isset and unset operators. Example: class x { function __isset( $name ) { echo "have fun!"; } } $x = new x(); isset( $x->test ); Produce: "have fun!" So do it :) ---- Server IP: 195.54.192.44 Probable Submitter: 83.220.42.125 (proxied: 1.1 SRV-PROXY) ---- Manual Page -- http://www.php.net/manual/en/function.unset.php Edit -- https://master.php.net/note/edit/74443 Del: integrated -- https://master.php.net/note/delete/74443/integrated Del: useless -- https://master.php.net/note/delete/74443/useless Del: bad code -- https://master.php.net/note/delete/74443/bad+code Del: spam -- https://master.php.net/note/delete/74443/spam Del: non-english -- https://master.php.net/note/delete/74443/non-english Del: in docs -- https://master.php.net/note/delete/74443/in+docs Del: other reasons-- https://master.php.net/note/delete/74443 Reject -- https://master.php.net/note/reject/74443 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#125304) next »