note 8580 deleted from function.implode by sniper
| From: | sniper@php.net | Date: | Wed, 08 Oct 2003 03:50:43 +0000 |
| Subject: | note 8580 deleted from function.implode by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-57986@lists.php.net to get a copy of this message | ||
Note Submitter: gherson (at) snet.net
----
$file_text = implode('',file("data.htm"));
slurps file data.htm into variable $file_text unchanged (vs the file content). Newlines are all in
the right place because newlines were the last char in each array element. That's how file()
splits the input.