Example #1
0
function test()
{
    $x = new X();
    $y = new Y();
    $x->f();
    $y->f();
}
Example #2
0
function test()
{
    $x = new X();
    $c = $x->f();
    var_dump($c(true));
    $y = new Y();
    $c = $y->f();
    var_dump($c("foo"));
}