Re: fgets() question?

From: Date: Sun, 22 Dec 2002 09:44:04 +0000
Subject: Re: fgets() question?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-129110@lists.php.net to get a copy of this message
> A blank line should return the newline (\n or \r\n), according to > http://www.php.net/manual/en/function.fgets.php. Also try using > '===' (3 = > signs) as the operator, which enforces type checking on a comparison). Yes or no: $foo == FALSE === 0; ??? Right now I'm just doing if($foo) And "\n" seems to equate to FALSE with this sort of conditional / comparison... Thanks, take care, --Noel

« previous php.general (#129110) next »