if ($_POST['foo']) {
// bar
}
的就是這句話...if the $_POST['foo'] variable is a boolean, and is true...
,(快速而簡單)這段代碼究竟在幹什麼?
或者這話說... if the $_POST['foo'] variable isset...
,
或者這話說... if the $_POST['foo'] variable is not null...
,
或者這說的那些東西的結合?或者這是說完全不同的東西?
布爾比較:http://nz1.php.net/manual/en/types.comparisons.php – 2013-06-30 23:57:51