PHPKonf Istanbul PHP Conference 2019 - Call for Papers


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

The Note You're Voting On

michael dot ochs at gmx dot net
10 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