note 28558 deleted from function.file by nlopess
| From: | nlopess@php.net | Date: | Sun, 03 Oct 2004 08:18:42 +0000 |
| Subject: | note 28558 deleted from function.file by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-77778@lists.php.net to get a copy of this message | ||
Note Submitter: jhedlund at NOSPAMyahoo dot com
----
With regards to the "deleting spaces" comment above, file() is *not* removing the spaces
(not in PHP v4.2.3 anyway).
HTML removes extra whitespace, so you have to use non-breaking spaces ( ) to get the extra
spaces. Here's what I use:
str_replace(" ", " ", $line);