News for hackers. Stuff that matters.
Re:Upcoming changes in PHP 7.1 by claar on Monday May 23, 2016 @01:53PM (#11755543)
Actually || is short circuiting and behaves exactly as he described, it returns the first true thing it encounters.

  $ php -a
  Interactive shell
  
  php > echo 1 || die('die');
  1
This echo's 1, it doesn't die.

There are no comments on this comment yet.