note 36012 added to function.file-get-contents
| From: | ibyte at noxs dot nl_nospam | Date: | Mon, 22 Sep 2003 23:10:39 +0000 |
| Subject: | note 36012 added to function.file-get-contents | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-56927@lists.php.net to get a copy of this message | ||
A shorter way of replacing file_get_contents() (not binary safe prior to PHP 4.3.0, I'm afraid)
is the following:
$filedata = implode("", file($filename));
----
Manual Page -- http://www.php.net/manual/en/function.file-get-contents.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+36012
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+36012&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+36012&report=yes