Home > Backend Development > PHP Tutorial > require_once() 和require() 效率大吗?

require_once() 和require() 效率大吗?

WBOY
Release: 2016-06-06 20:30:05
Original
1168 people have browsed it

require_once() 和require() 效率大吗?

回复内容:

require_once() 和require() 效率大吗?

require_once 和 require 的性能在各种条件下会有些许区别。
详情参照 再一次, 不要使用(include/require)_once

效率问题可参考文章评论。

无差别,只是require_one不会重复载入而已

Related labels:
php
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