Mid-Atlantic Developer Conference


Please answer this simple SPAM challenge: max(three, zero)?
(Example: nine)

The Note You're Voting On

michael dot ochs at gmx dot net
11 years ago
Actually it isn't possible to do:
() OR throw new Exception();

This leads to a T_THROW Syntax Error. If you want to use this kind of exceptions, you can do the following:

function throwException($message = null,$code = null) {
    throw new

someFunction() OR throwException();

<< Back to user notes page

To Top