From: [EMAIL PROTECTED]
Operating system: windowsNT
PHP version: 4.0.4pl1
PHP Bug Type: Feature/Change Request
Bug description: getline
Add a getline feature to the file and string routines. is it possible to incorporate
the iostream style stdin/stdout in php?
this is the getline i wrote:
function getline( $fp, $delim )
{
$result = "";
while( !feof( $fp ) )
{
$tmp = fgetc( $fp );
if( $tmp == $delim )
return $result;
$result .= $tmp;
}
return $result;
}
--
Edit Bug report at: http://bugs.php.net/?id=9173&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]