php中的$this

与java,c++不同,php方法内部的要引用属性必须加$this   否则会认为是方法中的局部变量

posted @ 2015-01-23 23:34  shenming  阅读(99)  评论(0编辑  收藏  举报