minus-squareLemmypy@feddit.nltoProgrammer Humor@lemmy.ml•and people wonder why we say PHP is a memelinkfedilinkarrow-up1·1 year agoFinally got it… $a == 1 ? "one" : ( ( $a == 2 ? "two" : $a == 3 ) ? "three" : "other" ) linkfedilink
minus-squareLemmypy@feddit.nltoMemes@lemmy.ml•A memmy lemmy screenshot is not a meme.linkfedilinkEnglisharrow-up1·1 year agoNo it isn’t linkfedilink
Finally got it…
$a == 1 ? "one" : ( ( $a == 2 ? "two" : $a == 3 ) ? "three" : "other" )