note 19955 added to function.file

From: Date: Sat, 16 Mar 2002 16:16:02 +0000
Subject: note 19955 added to function.file
Groups: php.notes 
Request: Send a blank email to php-notes+get-27857@lists.php.net to get a copy of this message
file() has a strange behaviour when reading file with both \n and \r as line delimitator (DOS files), since it will return an array with every single line but with just a \n in the end. It seems like \r just disappears. This is happening with PHP 4.0.4 for OS/2. Don't know about the Windows version. -- http://www.php.net/manual/en/function.file.php http://master.php.net/manage/user-notes.php?action=edit+19955 http://master.php.net/manage/user-notes.php?action=delete+19955 http://master.php.net/manage/user-notes.php?action=reject+19955

« previous php.notes (#27857) next »