AlmightySnoo 🐢🇮🇱🇺🇦 to Programmer [email protected] • edit-22 years agoand people wonder why we say PHP is a memelemmy.worldimagemessage-square117fedilinkarrow-up1376arrow-down139
arrow-up1337arrow-down1imageand people wonder why we say PHP is a memelemmy.worldAlmightySnoo 🐢🇮🇱🇺🇦 to Programmer [email protected] • edit-22 years agomessage-square117fedilink
minus-square@[email protected]linkfedilink18•2 years agoFinally got it… $a == 1 ? "one" : ( ( $a == 2 ? "two" : $a == 3 ) ? "three" : "other" )
Finally got it…
$a == 1 ? "one" : ( ( $a == 2 ? "two" : $a == 3 ) ? "three" : "other" )
because “two” is a truthy value?
Yep, any non empty string is truthy.