fscanf

PHP 4 >= 4.0.1, PHP 5, PHP 7, PHP 8
fscanf - Parses input from a file according to a format
Manual
Code Examples

Example #1 fscanf Example

PHP Version:

Example #2 Contents of users.txt

PHP Version: