您好,欢迎访问一九零五行业门户网

解析php中的==与===(双等号、三等号)

if($config['urlrewrite']==1)或 if($config['urlrewrite']==='1')来判断。
复制代码
说明: $a == $b;// equal true if $a is equal to $b.$a === $b;// identical true if $a is equal to $b, and they are of the same type. (introduced in php 4)意思为:==是不判断二者是否是同一数据类型,而===是更为严格的比较,它不但要求二者值相等,而且还要求它们的数据类型也相同。
其它类似信息

推荐信息