note 27441 rejected from function.fgetc by nicos

From: Date: Fri, 06 Dec 2002 10:34:22 +0000
Subject: note 27441 rejected from function.fgetc by nicos
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-40408@lists.php.net to get a copy of this message
in this line: while(($c = fgetc($f)) != 'X') fputs($f, $c); fclose($f); the ($c = fgetc($f)) will always be interperreted as true. when you assign a variable, it is always true. True will never equal 'X'

« previous php.notes (#40408) next »