note 45289 deleted from language.operators by danbrown
| From: | danbrown@php.net | Date: | Fri, 30 Jan 2009 20:44:40 +0000 |
| Subject: | note 45289 deleted from language.operators by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-150009@lists.php.net to get a copy of this message | ||
Note Submitter: Stopping at the dot completely
----
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.