note 62405 added to language.references.spot
| From: | ludvigdotericsonatgmaildotcom at osu1 dot php dot net | Date: | Mon, 27 Feb 2006 23:36:54 +0000 |
| Subject: | note 62405 added to language.references.spot | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-104520@lists.php.net to get a copy of this message | ||
For the sake of clarity:
$this is a PSEUDO VARIABLE - thus not a real variable. ZE treats is in other ways then normal
variables, and that means that some advanced variable-things won't work on it (for obvious
reasons):
<?php
class Test {
var $monkeys = 0;
function doFoobar() {
$var = "this";
$$var->monkeys++; // Will fail on this line.
}
}
$obj = new Test;
$obj->doFoobar(); // Will fail in this call.
var_dump($obj->monkeys); // Will return int(0) if it even reaches here.
?>
----
Server IP: 129.16.214.50
Probable Submitter: 213.89.140.71
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/language.references.spot.php
Edit -- http://master.php.net/note/edit/62405
Del: integrated -- http://master.php.net/note/delete/62405/integrated
Del: useless -- http://master.php.net/note/delete/62405/useless
Del: bad code -- http://master.php.net/note/delete/62405/bad+code
Del: spam -- http://master.php.net/note/delete/62405/spam
Del: non-english -- http://master.php.net/note/delete/62405/non-english
Del: in docs -- http://master.php.net/note/delete/62405/in+docs
Del: other reasons-- http://master.php.net/note/delete/62405
Reject -- http://master.php.net/note/reject/62405
Search -- http://master.php.net/manage/user-notes.php