note 58789 added to function.file-get-contents
| From: | hackajar<matt>yahoo" com | Date: | Wed, 16 Nov 2005 04:09:52 +0000 |
| Subject: | note 58789 added to function.file-get-contents | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-98636@lists.php.net to get a copy of this message | ||
In response netjester at zoite dot net commenets ->
Use trim() instead of substr() it was designed to get whitespaces and newline char's for you.
(You could also use rtrim() to focus just on end of line data as well:)
----
Manual Page -- http://www.php.net/manual/en/function.file-get-contents.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+58789
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58789&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58789&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58789&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58789&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58789&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58789&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58789&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+58789&report=yes
Search -- http://master.php.net/manage/user-notes.php