gpt4 book ai didi

php - 使用 require_once ('filename.php' ) 还是 require_once 'filename.php' 更好?

转载 作者:IT王子 更新时间:2023-10-29 01:07:26 25 4
gpt4 key购买 nike

这只是风格上的差异,还是使用 require_once('filename.php')require_once 'filename.php' 有实际的负载/效率差异?

最佳答案

梨编码标准说:

"include_once and require_once are statements, not functions. Parentheses should not surround the subject filename."

来源:http://pear.php.net/manual/en/standards.including.php

关于php - 使用 require_once ('filename.php' ) 还是 require_once 'filename.php' 更好?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3393847/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com