KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I dont understand how that output (" four ") comes? $a = 2; echo $a == 1 ? 'one' : $a == 2 ? 'two' : $a == 3 ? 'three' : $a == 5 ? 'four' : 'other' ; // prints 'four' I don't understand why " four " gets printed.
Tags (comma-separated)
Save Edits
Cancel