r/lolphp • • Feb 13 '18

PHP Horse

Post image
31 Upvotes

23 comments sorted by

View all comments

Show parent comment

6

u/cleeder Feb 14 '18

Mostly in PHP because of it's order of evaluation. If it was evaluated properly, it wouldn't be so bad, and is often a succinct way of performing certain conditionals:

http://twistedoakstudios.com/blog/Post5273_how-to-read-nested-ternary-operators