X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=misc.php;h=18a1a41727a99a4968efff7008900a80207fce26;hb=484e7d7390f43456f0dbee648fa9a4e6854401fa;hp=4e1da442c27d93f42a9305afda42430f66b529ce;hpb=33991182df707af9558bc761bf2f58d1f3f950ef;p=wfpl.git diff --git a/misc.php b/misc.php index 4e1da44..18a1a41 100644 --- a/misc.php +++ b/misc.php @@ -1,5 +1,26 @@ 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); } ?>