note 57992 rejected from function.fwrite by betz
| From: | betz@php.net | Date: | Fri, 21 Oct 2005 09:00:48 +0000 |
| Subject: | note 57992 rejected from function.fwrite by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-97342@lists.php.net to get a copy of this message | ||
Note Submitter: krystian at gatech dot edu
----
Given the following hypothetical code:
$fp = fopen("some.dat", "w");
$result = fwrite($fp, null);
if (! $result) {
echo "couldn't write";
}
fclose($fp);
The output will be "couldn't write". It appears as though you cannot write a null
string to a file.