歡迎來到小豬圈!

2007-04-23

require 和 include 的差別

  • 簡單來說就是 require 出錯時會讓該 script 停下來(throw Fatal Error),而當include出錯時 script 會繼續執行(Warning)。
  • 還有就是,require 和 include 都是 Control Structures,而不是 Function。

No comments:

Post a Comment

Comment Form Message

標籤分類

Blog Archive

Labels

Google Analytics Tracking Code

About Me

My photo
Keelung, R.O.C, Taiwan
一個不學無術、混吃等死的傢伙…