什么是关联性(对于运营商)以及为什么重要?
更新:操作员关联性
associativity
我不明白输出(" four")是怎么来的?
four
$a = 2; echo $a == 1 ? 'one' : $a == 2 ? 'two' : $a == 3 ? 'three' : $a == 5 ? 'four' : 'other' ; // prints 'four'
我不明白为什么" four"被打印出来.
php ternary-operator operator-precedence
associativity ×1
operator-precedence ×1
php ×1
ternary-operator ×1