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

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

WBOY
WBOYOriginal
2016-06-06 20:30:051162browse

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

回复内容:

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

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

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

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

Statement:
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