PHP fscanf() Function
❮ PHP Filesystem ReferenceDefinition and Usage
The fscanf() function parses the input from an open file according to the specified format.
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.
Syntax
fscanf(file, format, mixed)
Parameter Values
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. |
Technical Details
Return Value: | The read string, FALSE on failure |
---|---|
PHP Version: | 4.0.1+ |
❮ PHP Filesystem Reference