note 45289 added to language.operators

From: Date: Wed, 01 Sep 2004 08:33:18 +0000
Subject: note 45289 added to language.operators
Groups: php.notes 
Request: Send a blank email to php-notes+get-75823@lists.php.net to get a copy of this message
The low precedence of the OR operator is useful for error control statements such as this one: $my_file = @file ('non_existent_file') or die ("Failed opening file: error was '$php_errormsg'"); Notice the good readability of the code. ---- Manual Page -- http://www.php.net/manual/en/language.operators.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45289 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45289&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45289&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#75823) next »