note 19637 deleted from function.readfile by didou
| From: | didou@php.net | Date: | Wed, 13 Aug 2003 00:12:13 +0000 |
| Subject: | note 19637 deleted from function.readfile by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-54050@lists.php.net to get a copy of this message | ||
Note Submitter: chris@creative-dementia.com
----
you can also use file() instead to store the file contents in an array line by line (the newlines
will remain), put the string together again using implode and in the end echo it...i.e.:
$content_array = file($filename);
$content = implode("", $content_array);
print nl2br($content);