2012年2月19日

摘要: 错误处理函数1. error_reporting — Sets which PHP errors are reported2. ini_set — Sets the value of a configuration option3.ini_get — Gets the value of a configuration option4.error_log — Send an error message somewherebool error_log ( string $message [, int $message_type = 0 [, string $destination [, strin 阅读全文
posted @ 2012-02-19 22:39 阿酷影 阅读(735) 评论(0) 推荐(1)
摘要: 在php中,访问类的方法/变量有两种方法:1. 创建对象$object = new Class(),然后使用”->”调用:$object->attribute/function,前提是该变量/方法可访问。2. 直接调用类方法/变量:class::attribute/function,无论是静态/非静态都可以。但是有前提条件:A. 如果是变量,需要该变量可访问。B. 如果是方法,除了该方法可访问外,还需要满足:b1) 如果是静态方法,没有特殊条件;b2) 如果是非静态方法,需要改方法中没有使用$this,即没有调用非静态的变量/方法,当然,调用静态的变量/方法没有问题。然后我们再看一 阅读全文
posted @ 2012-02-19 10:06 阿酷影 阅读(413) 评论(0) 推荐(1)

导航