关于运算符的问题。为毛这样?
<!--
Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/
-->
if($item[$column_name] .$operation. $info)
{
echo $item[$column_name] .$operation. $info;echo '=====true';echo '<br>';
return true;
}else{
echo $item[$column_name] .$operation. $info;echo '=====false';echo '<br>';
return false;
}
输出:
508205462=505765854=====true
10>1234567=====true
20<66666=====true
解释:$item[$column_name] 的结果就相当于运算符的第一个 ,$operation是运算符,$info是值,为什么直接写if(10>1234567)返回假,用程序运算出来全部为真??
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号