摘要: <?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 阅读全文
posted @ 2011-08-01 13:38 nodot 阅读(418) 评论(0) 推荐(0) 编辑