我无法理解为什么声明在两次都成真.
$hello="foo";
if($hello<=6){
echo "yes\n";
}
if ($hello>=0) {
echo "ohh yess!";
}
Run Code Online (Sandbox Code Playgroud)
它输出
yes
ohh yess!
Run Code Online (Sandbox Code Playgroud)
我知道这是整数和字符串之间的非法比较,但为什么它毕竟是真的.
php ×1