歡迎來到小豬圈!

2008-10-28

關於 PHP 的 closing tag

  • PHP 的 closing tag (即“?>”)是可以省略的,雖然有寫在 PHP: Instruction separation - Manual 這一篇的 Note 裡,但我一直到最近才知道。
  • 省略 closing tag 可以在 include 文件時,避免因文未多餘的字元而無法送出 header 的情況。

No comments:

Post a Comment

Comment Form Message

標籤分類

Blog Archive

Labels

Google Analytics Tracking Code

About Me

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