Skip to content

Commit fb9c500

Browse files
committed
Some more hints
1 parent 46b0e20 commit fb9c500

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

exercises/have-the-last-say/problem/problem.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,22 @@ Note: only the values changed from the defaults are specified!
4848

4949
You will need to open the filer for writing before using `fgetcsv` you can do that using `fopen`.
5050

51+
`fgetcsv` will return *one* line at a time
52+
53+
You will most likely need a loop to process all the data in the file.
54+
55+
You will need to keep reading from the file until it has been fully read. `feof` is your friend here to know
56+
whether there is any data left to read.
57+
5158
Documentation on the `fopen` function can be found by pointing your browser here:
5259
[https://www.php.net/manual/en/function.fopen.php]()
5360

5461
Documentation on the `fgetcsv` function can be found by pointing your browser here:
5562
[https://www.php.net/manual/en/function.fgetcsv.php]()
5663

64+
Documentation on the `feof` function can be found by pointing your browser here:
65+
[https://www.php.net/manual/en/function.feof.php]()
66+
5767
----------------------------------------------------------------------
5868
## EXTRA
5969

0 commit comments

Comments
 (0)