File System - Study Mode

[#11] Which one of the following PHP function is used to determine a file’s last access time?
Correct Answer

(C) fileatime()

Explanation

Solution: The fileatime() function returns a file’s last access time in Unix timestamp format or FALSE on error.

[#12] Which one of the following function is capable of reading a file into an array?
Correct Answer

(A) file()

[#13] Which one of the following function is capable of reading a file into a string variable?
Correct Answer

(B) file_get_contents()

[#14] Which one of the following function is capable of reading a specific number of characters form a file?
Correct Answer

(A) fgets()

Explanation

Solution: Its prototype is string fgets(resource handle [, int length]). If the optional length parameter is omitted, 1024 character is assumed.

[#15] Which one of the following function operates similarly to fgets(), except that it also strips any HTML and PHP tags form the input?
Correct Answer

(D) fgetss()