PHP 裡面有幾個判斷變數值的函式 empty()、isset()、is_null() 來記錄一下差別和他們回傳的值~ isset() isset — Determine if a variable is set and is not NULL 判斷變數是否有被指定值並且不為null,包括宣告變數但未指派值。 empty() empty — Determine whether a variable is empty 判斷變數是否為空,以下情況即為空 “”           (空字串) 0            (整數 0) 0.0        (浮點數 0.0) “0”        (“0” string) […]