note 23527 rejected from function.fscanf by spic

From: Date: Mon, 16 Sep 2002 12:05:57 +0000
Subject: note 23527 rejected from function.fscanf by spic
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-36748@lists.php.net to get a copy of this message
Warning, if an empty string is extracted to a variable, the variable won't be updated! Must be a bug. Example : fscanf($fp, "%[^:]:%[^:]:", $v1, $v2); in the file you have: 1:1: 2:: and you get: $v1 = "1", $v2 = "1" then $v1 = "2", $v2 = "1" (instead of "") hmmm, i think i'll forget about PHP. Java is sooo much better :)

« previous php.notes (#36748) next »