note 26280 added to function.fscanf

From: Date: Thu, 24 Oct 2002 21:08:36 +0000
Subject: note 26280 added to function.fscanf
Groups: php.notes 
Request: Send a blank email to php-notes+get-38520@lists.php.net to get a copy of this message
actually, instead of trying to think of every character that might be in your file, excluding the delimiter would be much easier. for example, if your delimiter was a comma use: %[^,] instead of: %[a-zA-Z0-9.| ... ] Just make sure to use %[^,\n] on your last entry so you don't include the newline. -- http://www.php.net/manual/en/function.fscanf.php http://master.php.net/manage/user-notes.php?action=edit+26280 http://master.php.net/manage/user-notes.php?action=delete+26280 http://master.php.net/manage/user-notes.php?action=reject+26280

« previous php.notes (#38520) next »