Hızlı yanıt: kod örneği
This is the conditional operator.means "if is true, then use ; otherwise use ".It also has a short form.means "if is true, then use ; otherwise use ".People will tell you that is "the ternary operator". This is wrong. is a ternary operator, which means that it has three operands. People wind up thinking its name is "the ternary operator" because it's often the only ternary operator a given language has.
$x ? $y : $z
$x
$y
$z
$x ?: $z
$x
$x
$z
?:
?: