note 28558 added to function.file
| From: | jhedlund at NOSPAMyahoo dot com | Date: | Thu, 16 Jan 2003 19:35:25 +0000 |
| Subject: | note 28558 added to function.file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-42237@lists.php.net to get a copy of this message | ||
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);
--
http://www.php.net/manual/en/function.file.php
http://master.php.net/manage/user-notes.php?action=edit+28558
http://master.php.net/manage/user-notes.php?action=delete+28558
http://master.php.net/manage/user-notes.php?action=reject+28558