Fungsi PHP fscanf()
Referensi Sistem File PHPDefinisi dan Penggunaan
Fungsi fscanf() mem-parsing input dari file yang terbuka sesuai dengan format yang ditentukan.
Catatan: Spasi apa pun dalam string format cocok dengan spasi putih apa pun di aliran input. Ini berarti bahwa tab (\t) dalam format string dapat cocok dengan satu karakter spasi di aliran input.
Sintaksis
fscanf(file, format, mixed)
Nilai Parameter
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. |
Detail Teknis
Nilai Kembali: | String baca, FALSE saat gagal |
---|---|
Versi PHP: | 4.0.1+ |
Referensi Sistem File PHP