摘要: PHP把所有以__(两个下划线)开头的类方法当成魔术方法。所以你定义自己的类方法时,不要以 __为前缀。// __toString、__set、__get__isset()、__unset()/* The __toString method allows a class to decide how it will react when it is converted to a string. __set() is run when writing data to inaccessible members. __get() is utilized for reading data from in 阅读全文
posted @ 2014-01-07 23:09 wangjunzi 阅读(156) 评论(0) 推荐(0) 编辑