PHP学习 之 拾遗

composer.lock

  • 请提交你应用程序的 composer.lock(包括composer.json)到你的版本库中

参考: Composer - 基本用法

include与require的区别

  • include引入文件的时候 如果碰到错误 会给出提示 并继续运行下边的代码

  • require引入文件的时候 如果碰到错误 会给出提示 并停止运行下边的代码

参考: PHP中include和require的区别详解

echo、print、print_r()和var_dump()

参考: PHP: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';

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。