PHP fscanf() Functie
❮ Referentie voor PHP-bestandssysteemDefinitie en gebruik
De functie fscanf() ontleedt de invoer van een geopend bestand volgens het opgegeven formaat.
Opmerking: elke witruimte in de opmaakreeks komt overeen met elke witruimte in de invoerstroom. Dit betekent dat een tab (\t) in de opmaakreeks kan overeenkomen met één spatie in de invoerstroom.
Syntaxis
fscanf(file, format, mixed)
Parameterwaarden
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. |
Technische details
Winstwaarde: | De leesreeks, ONWAAR bij fout |
---|---|
PHP-versie: | 4.0.1+ |
❮ Referentie voor PHP-bestandssysteem