note 36459 added to function.file
| From: | MagicalTux at rn2 dot php dot net | Date: | Fri, 10 Oct 2003 09:13:39 +0000 |
| Subject: | note 36459 added to function.file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-58180@lists.php.net to get a copy of this message | ||
Jeff and dir forgot something in their code :
Note: Each line in the resulting array will include the line ending, so you still need to use trim()
if you do not want the line ending present.
In dir's functions, replace implode('\n', ... by implode('', ... and
remember that you have to add the \n on each field of the array (better to use the same behaviour as
file())
----
Manual Page -- http://www.php.net/manual/en/function.file.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+36459
Delete -- http://master.php.net/manage/user-notes.php?action=delete+36459&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+36459&report=yes
Search -- http://master.php.net/manage/user-notes.php