摘要:
<?phpclass SimpleClass{ public $var = 'a default value'; public function displayVar() { echo $this->var; }}$instance = new SimpleClass(); $assigned = $instance;$reference =& $instance; $instance->var = '$assigned will have this value'; $instance = null; // $instance and 阅读全文