* Please note the internal behaviour of PHP that seems to do the reference assignment BEFORE actually copying the variable!!! Thus you get an array containing a (different) recursive array for the last testcase, instead of an array containing an empty array as you could expect.
BenBE.
ludvig dot ericson at gmail dot com (28-Feb-2006 07:36)
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. }
}