- var_dump: documentation ( source)
L<?php
interface FooInterface {
public function &get();
}
class Foo implements FooInterface {
protected $thing = 5;
public function get() {
return $this->thing;
}
}
$foo = new Foo();
$thing = &$foo->get();
$thing = 7;
var_dump($foo->get());