335
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.)
Wat.
http://phpsadness.com/sad/30
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! 🤓