note 66904 added to function.chop
| From: | quarta77 at hotmail dot com | Date: | Wed, 31 May 2006 21:09:26 +0000 |
| Subject: | note 66904 added to function.chop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-112678@lists.php.net to get a copy of this message | ||
the char list didnt work for me. i needed to chop off the new line character at the end of a line
when reading in a file. So this is what i did...
$data = file("emails.txt");
foreach($data as $value)
{
$value = substr($value, 0, (strlen($value)-1) );
// blah blah blah
}
----
Server IP: 66.207.199.35
Probable Submitter: 209.29.52.10
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.chop.php
Edit -- http://master.php.net/note/edit/66904
Del: integrated -- http://master.php.net/note/delete/66904/integrated
Del: useless -- http://master.php.net/note/delete/66904/useless
Del: bad code -- http://master.php.net/note/delete/66904/bad+code
Del: spam -- http://master.php.net/note/delete/66904/spam
Del: non-english -- http://master.php.net/note/delete/66904/non-english
Del: in docs -- http://master.php.net/note/delete/66904/in+docs
Del: other reasons-- http://master.php.net/note/delete/66904
Reject -- http://master.php.net/note/reject/66904
Search -- http://master.php.net/manage/user-notes.php