function ref

This function takes a php reference as its only argument and return a Ref object referencing this argument.

$a = new SomeObject();
$ref = ref($a);

ref() acts as a alias for 'new Ref($obj)' which simplify php code involving Ref system.