To keep things from getting confusing when using ternary operators, always have the statements test for true instead of false.
// (if statement is true) ? (do this) : (if false, do this); $basketballteam = ( 'lakers' == $team ) ? 'champions' : 'blah';
In the example above, you’ll notice that the variable is on the right side of the comparison. This way, if an equal sign is omitted, a parse error will be thrown and execution will halt. If you can save one bug, do it. 😉