摘要: 在项目里遇到一个有意思的事,判断php中0和空的问题。 a值呢,默认为空字符串。此时我们传的参数为0值。 example: $a = 0;if(!empty($a)){ if($a == 0){ echo '0'; }elseif ($a == 1){ echo '1'; }}else{ echo 阅读全文
posted @ 2021-02-20 14:59 龙卷风之殇 阅读(119) 评论(0) 推荐(0)