Name

fscanf

Synopsis

mixed fscanf(int handle, string format[, string name1[, ... string nameN]])

Reads data from the file referenced by handle and returns a value from it based on format. For more information on how to use this function, see sscanf.

If the optional name1 through nameN parameters are not given, the values scanned from the file are returned as an array; otherwise, they are put into the variables named by name1 through nameN.

Get Programming PHP, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.