謝晒的PHP網頁設計
聯絡E-mail:
sean0704@gmail.com
站內搜尋
Tuesday, June 9, 2015
[PHP] 數字0 跟 字串0 在 if($a != '') 的判斷結果是不一樣的
$a = 0;
if($a != '') echo 1; //不會印出
$a = '0';
if($a != '') echo 1; //會印出
No comments:
Post a Comment
Newer Post
Older Post
Home
View mobile version
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment