Which of the following functions reads the entire contents of a file?
1. fgets()
2. file_get_contents()
3. fread()
4. readfile()
5. file()
A. Option 3 and 5
B. Option 1, 3 and 4
C. Option 2, 4 and 5
D. Option 2 and 4
Answer: Option C
Join The Discussion
Comments ( 1 )
Related Questions on File System
The filesize() function returns the file size in ___________
A. bits
B. bytes
C. kilobytes
D. gigabytes
Which one of the following PHP function is used to determine a file’s last access time?
A. fileltime()
B. filectime()
C. fileatime()
D. filetime()
Which one of the following function is capable of reading a file into an array?
A. file()
B. arrfile()
C. arr_file()
D. file_arr()
Which one of the following function is capable of reading a file into a string variable?
A. file_contents()
B. file_get_contents()
C. file_content()
D. file_get_content()
tell the exact answer