AlmightySnoo 🐢🇮🇱🇺🇦 to Programmer [email protected] • edit-21 year agoand people wonder why we say PHP is a memeimagemessage-square111arrow-up1406arrow-down143
arrow-up1363arrow-down1imageand people wonder why we say PHP is a memeAlmightySnoo 🐢🇮🇱🇺🇦 to Programmer [email protected] • edit-21 year agomessage-square111
minus-square@dot20link19•1 year agoAh, I understand now. The expression is evaluated like this: $a == 1 ? "one" : $a == 2 ? "two" : $a == 3 ? "three" : "other" $a == 2 ? "two" : $a == 3 ? "three" : "other" "two" ? "three" : "other" "three"
minus-square🌈 Lascapi ⁂linkfedilink2•1 year ago@AlmightySnoo @dot20 hooooo 🤯!! Thank you for the solution! 🤓
Ah, I understand now. The expression is evaluated like this:
$a == 1 ? "one" : $a == 2 ? "two" : $a == 3 ? "three" : "other"
$a == 2 ? "two" : $a == 3 ? "three" : "other"
"two" ? "three" : "other"
"three"
@AlmightySnoo @dot20 hooooo 🤯!! Thank you for the solution! 🤓