Hmmm it was with PHP 4. This is just an example how it looks it has been quite a while
function myMethod() {
$var1 = 12;
DifferentObject::myOtherMethod(&$var2);
$var3 = $var2->doSomething();
}
and the fun part was the reference was sometimes passed through 4 - 5 layers.
This was quite a confusing way to do things.
It's not that I am innocent of doing horrible things with code but this example actually kinda scared me ;D ....