PHP fscanf() Function
Complete PHP Filesystem Reference
Definition and Usage
The fscanf() function parses the input from an open file according to the specified format.
Syntax
fscanf(file,format,mixed)
Parameter | Description |
---|---|
file | Required. Specifies the file to check |
format | Required. Specifies the format. Possible format values:
Additional format values. These are placed between the % and the letter (example %.2f):
Note: If multiple additional format values are used, they must be in the same order as above. |
mixed | Optional. |
Tips and Notes
Note: Any whitespace in the format string matches any whitespace in the input stream. This means that a tab (\t) in the format string can match a single space character in the input stream.
Complete PHP Filesystem Reference