composer.lock
- 请提交你应用程序的 composer.lock(包括composer.json)到你的版本库中
参考: Composer - 基本用法
include与require的区别
include引入文件的时候 如果碰到错误 会给出提示 并继续运行下边的代码
require引入文件的时候 如果碰到错误 会给出提示 并停止运行下边的代码
echo、print、print_r()和var_dump()
php中return,require,include加括号和不加括号的区别
- Not including parentheses is actually faster because PHP treats it as the language construct instead of a function
参考: Check for parentheses around require(once)/include(once) / PHP - is it better to use require_once('filename.php') or require_once 'filename.php';