Thread
:
PHP的if判断,为什么要写两个条件
View Single Post
#
1
IP: 114.238.140.18
2016-02-28, 10:16 PM
Paradise Valley
初级会员
Join Date: 2010-04-25
Posts: 2
PHP的if判断,为什么要写两个条件
PHP的if判断,为什么要写两个条件,只写一个$str==='string'不是也一样吗?
是出于速度的考虑吗?
代码如下,
Code:
if(isset($str) && $str==='string'){ ... }
Paradise Valley
View Public Profile
Find all posts by Paradise Valley