Contenu connexe
Plus de Hisateru Tanaka (19)
&& || and or まぜるな危険
- 13. ($ab = ($a == 1)) or ($b == 2);
$ab = $a == 1 or $b == 2;
- 15. 引用:
Use of ¦¦ is discouraged as its clarity on some
output devices is low (looking like the number
11 for instance).
- 31. $f = @fopen($filePath, 'r');
while($f and $str = fgets($f)) {
echo $str;
}
andの左がfalseに確定すれば
それ以降を評価する必要がない
- 34. 結論
•and と or で求めるものは true/false
ではない
•and = そして演算子
•or = さもなくば演算子
•で、読みやすいか? これ...