php中性能相关的一部分注意要点

WBOY
Release: 2016-06-13 11:41:38
Original
689 people have browsed it

php中性能相关的部分注意要点

(1) array_merge 的使用要慎重,如果可以用其他方法搞定,就别用这个。尤其在数组长度长,数据量大的时候,性能急剧下降。

(2)正则表达式,如preg_replace 使用要慎重,如果能用php的str_replace 代替,性能效果会很好

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template