PHP fscanf () function
Definition and Usage
fscanf () function according to the specified format for input from an open file to parse.
grammar
fscanf(file,format,mixed)
参数 | 描述 |
---|---|
file | 必需。规定要检查的文件。 |
format | 必需。规定格式。 可能的格式值:
附加的格式值。必需放置在 % 和字母之间(例如 %.2f):
注释:如果使用多个上述的格式值,它们必须按照上面的顺序进行使用,不能打乱。 |
mixed | 可选。 |
Tips and Notes
Note: Blank Blank will match any input stream format string any. This means that the format string tab \ t will match the input stream to a single space character.
Complete PHP Filesystem Reference Manual