[PHP 學習筆記] require 和 include 的使用比較

The include and require statements are identical, except upon failure: 
1. require will produce a fatal error (E_COMPILE_ERROR) and stop the script 
2. include will only produce a warning (E_WARNING) and the script will continue

參考文件:
1. 談php的include和require
2. include、include_once與require、require_once中的用法
3. [PHP] include 與 require 的差別
4. PHP include and require Statements


贊助本站 (Donate)