X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=misc.php;h=5678b673618ff9ab3738c6f91ce3f5b0084cc3af;hb=73490300ca9dea6fc3c6d3a474ab49796fd58438;hp=4e1da442c27d93f42a9305afda42430f66b529ce;hpb=33991182df707af9558bc761bf2f58d1f3f950ef;p=wfpl.git diff --git a/misc.php b/misc.php index 4e1da44..5678b67 100644 --- a/misc.php +++ b/misc.php @@ -1,14 +1,22 @@ 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); } ?>