(PHP 4 >= 4.0.1, PHP 5, PHP 7)
Parses input from a file according to a format
mixed fscanf ( resource $handle, string $format [, mixed &$... ] )
The function fscanf() is similar to sscanf(), but it takes its input from a file associated with handle and interprets the input according to the specified format, which is described in the documentation for sprintf().
Any whitespace in the format string matches any whitesp