PHP Programming quiz, level Intermediate, question 5
| Question: | To read a file into an array, which function might you use? |
| Answer 1: | file() This was the CORRECT answer |
| Answer 2: | file_read() |
| Answer 3: | array_walk() |
| Answer 4: | There's no single function to do this; you have to use a loop, using fgets() to read each line and checking for completion using feof() |
| Answer 5: | slurp() |
| Answer 6: | pull() |
This was a question from our quiz ... but we have now provided you with
the answer (above) - we prefer to provide you with information rather than to
puzzle you.
|
|