摘要:
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 阅读全文