X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=misc.php;h=ff0d2272931dcd5f2c3188dedc097a1889df7a00;hb=bf847ba221f16f612197b9162e24a28be2393295;hp=4e1da442c27d93f42a9305afda42430f66b529ce;hpb=33991182df707af9558bc761bf2f58d1f3f950ef;p=wfpl.git diff --git a/misc.php b/misc.php index 4e1da44..ff0d227 100644 --- a/misc.php +++ b/misc.php @@ -1,5 +1,23 @@ ref; +# } +# ... +# } +# +# foo(); +# foo(ref($baz)); + +class stupid_reference { + var $ref; + function stupid_reference(&$ref) { + $this->ref = &$ref; + } +} +function ref(&$foo) { + return new stupid_reference($foo); } ?>