php[world] 2018 - Call for Speakers

Voting

Please answer this simple SPAM challenge: min(nine, one)?
(Example: nine)

The Note You're Voting On

shawnster
11 years ago
An easy fix (although intuitively tough to do...) is to reverse the comparison.

if (5 == $a) {}

If you forget the second '=', you'll get a parse error for trying to assign a value to a non-variable.

<< Back to user notes page

To Top