note 58789 deleted from function.file-get-contents by tomsommer
| From: | tomsommer@php.net | Date: | Fri, 03 Mar 2006 10:19:29 +0000 |
| Subject: | note 58789 deleted from function.file-get-contents by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-104751@lists.php.net to get a copy of this message | ||
Note Submitter: hackajar <matt> yahoo <trot> com
----
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:)