這個符號'@'在php有什麼用處呢?
它有一個很好用的地方就是, 在變數前加上@,
那麼因這個變數而產生的一些警告訊息就不會
出現在頁面上了. 就好像拿ok绷將嘴巴貼上的感覺.
例如: $searchstr 若沒定義, 則會產生undefined
variable.... 等訊息在網頁上, 若在前面加上@,
變成 @$searchstr, 這樣那些undefined ...訊息就不會
出現了.
覺得蠻好用的~ :)
對不起. 請原諒我. 謝謝你. 我愛你.
I am sorry. Please forgive me. Thank you. I love you.
Lo siento. Perdóname, por favor. Gracias. Te amo.
"When we are willing to take 100% responsibility and let go, what is right and perfect unfolds." 當我們願意為我們所經歷的一切負百分之百的責任時, 適合我們的及完美的一切, 即為我們顯現.--http://www.self-i-dentity-through-hooponopono.com/index.htm
熱門文章
-
讀了 Mr. Raymon Grace 的 " Seasons of April ", 我有一個啟發, 從開始讀這本書開始, 每天上午載噴火龍上學時及 每天晚上睡前, 我都會對他說: " 謝謝你, 因為有你, 這個地球會變得更好! " 或,...
-
"In every moment of our lives we are choosing. What are we choosing? We choose if we are going to react and engage when a problem com...
-
今天解決了 IIS 7 "設定錯誤 無法讀取設定檔案,因為權限不足" 的問題. 感謝偉大的網路, 讓我找到解法: 1. 檢查看看檔案夾是否是唯讀, 不可以是唯讀 我在IIS 管理員 console內, 將wwwroot及我站台的目錄 ...
沒有留言:
張貼留言