note 9087 added to fgets

From: Date: Sun, 15 Oct 2000 23:42:57 +0000
Subject: note 9087 added to fgets
Groups: php.notes 
Request: Send a blank email to php-notes+get-6510@lists.php.net to get a copy of this message
To strip the newline caracter at the end of the string: $buffer = fgets($fp, 4096); $buffer=str_replace(chr(10),"",$buffer); $buffer=str_replace(chr(13),"",$buffer); http://www.php.net/manual/function.fgets.php

« previous php.notes (#6510) next »