<?php $a = 0; $b = 0; if($a=3)>0 || ($b=3)>0) { $a++; $b++; } echo $a; // 4 echo $b; //1 if(($a=3)>0 | ($b=3)>0) { $a++; $b++; } echo $a; // 4 echo $b; // 4
http://yyys8517750.iteye.com/blog/1258457