上一页 1 ··· 10 11 12 13 14
摘要: 1 _mediator = $mediator; 10 } 11 12 public function send($message){ 13 $this->_mediator->send($message, $this); 14 } 15 16 abstract public function noti... 阅读全文
posted @ 2016-03-17 17:03 zhongyinghe 阅读(290) 评论(0) 推荐(0)
摘要: 1、一般来说,php倒不需要进行内存分析,但是遇到大循环时内存吃紧时就得要进行内存分析了,看看在哪里吃掉了内存。 $m1 = memory_get_usage(); $m2 = memory_get_usage(); . . . $mn = memory_get_usage(); 通过上下相减,则知 阅读全文
posted @ 2016-01-29 09:52 zhongyinghe 阅读(533) 评论(0) 推荐(0)
摘要: 加入BOM头即可fwrite($fp,"\xEF\xBB\xBF"); 参考:http://justcoding.iteye.com/blog/1668308 阅读全文
posted @ 2016-01-12 14:59 zhongyinghe 阅读(339) 评论(0) 推荐(0)
摘要: 1、addslashes() 使用反斜线引用字符串 和 stripslashes()反引用一个引用字符串 2、htmlentities():转化为html实体 和html_entity_decode():把html实体转化为html标签 3、htmlspecialchars():对特定的字符转化为h 阅读全文
posted @ 2016-01-11 15:22 zhongyinghe 阅读(5449) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14