Please answer this simple SPAM challenge: zero plus one?
(Example: nine)

The Note You're Voting On

10 years ago
Regarding the ternary operator, I would rather say that the best option is to enclose all the expression in parantheses, to avoid errors and improve clarity:

print ( $a > 1 ? "many" : "just one" );

PS: for php, C++, and any other language that has it.

<< Back to user notes page

To Top