note 74433 deleted from language.operators.logical by colder
| From: | colder@php.net | Date: | Fri, 20 Apr 2007 15:36:52 +0000 |
| Subject: | note 74433 deleted from language.operators.logical by colder | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-125687@lists.php.net to get a copy of this message | ||
Note Submitter: php at fernandobittencourt dot com
----
This another example can clarify the difference between the operators:
<?php
$contents = @file_get_contents($file) || implode("", file($file));
var_dump($contents); // returns a boolean
$contents = @file_get_contents($file) or implode("", file($file));
var_dump($contents); // returns the file contents
?>