- 论坛徽章:
- 0
|
这里是php。
1:带和不带once的区别:with the only difference being that if the code from a file has already been included, it will not be included again;*_once() should be used in cases where the same file might be included and evaluated more than once during a particular execution of a script, and you want to be sure that it is included exactly once to avoid problems with function redefinitions, variable value reassignments, etc.
2:require和include的区别:different in how they handle failure;require results in a Fatal Error;include results in only a warning and continue;
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/70874/showart_1812682.html |
|