摘要:
一:结构和调用(实例化):class className{} ,调用:$obj = new className();当类有构造函数时,还应传入参数。如$obj = new className($v,$v2…);二:构造函数和析构函数:1、构造函数用于初始化:使用__construct(),可带参数。... 阅读全文
posted @ 2015-07-19 11:14
流殇微
阅读(392)
评论(0)
推荐(0)
摘要:
PHP中的魔术方法总结 :__construct, __destruct , __call, __callStatic,__get, __set, __isset, __unset , __sleep, __wakeup, __toString, __set_state, __clone and _... 阅读全文
posted @ 2015-07-19 10:27
流殇微
阅读(301)
评论(0)
推荐(0)

浙公网安备 33010602011771号