note 23527 added to function.fscanf

From: Date: Sat, 20 Jul 2002 23:10:33 +0000
Subject: note 23527 added to function.fscanf
Groups: php.notes 
Request: Send a blank email to php-notes+get-33351@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 :) -- http://www.php.net/manual/en/function.fscanf.php http://master.php.net/manage/user-notes.php?action=edit+23527 http://master.php.net/manage/user-notes.php?action=delete+23527 http://master.php.net/manage/user-notes.php?action=reject+23527

« previous php.notes (#33351) next »