343
and people wonder why we say PHP is a meme
(lemmy.world)
Post funny things about programming here! (Or just rant about your favourite programming language.)
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.