note 37836 added to function.file
| From: | vincent___at___consultmacdotcalm at rn2 dot php dot net | Date: | Fri, 28 Nov 2003 23:59:08 +0000 |
| Subject: | note 37836 added to function.file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-61099@lists.php.net to get a copy of this message | ||
Here's a simeple function that gets the string of a file's contents using file().
-------------------------------------
function read_file($file) {
return implode('',file($file));
}
----
Manual Page -- http://www.php.net/manual/en/function.file.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+37836
Delete -- http://master.php.net/manage/user-notes.php?action=delete+37836&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+37836&report=yes
Search -- http://master.php.net/manage/user-notes.php