Programming Languages PHP Objective
Jan 02, 2013

Which one function reads entire content of a file?

Choose the correct answer:
A) file_contents()
B) get_contents()
C) file_get_contents()
D) file_get_content()
Detailed Explanation

Explanation: The file_get_contents() function reads entire file into a string. It is the preferred way to read the contents of a file into a string. It will use memory mapping techniques if supported by your OS to enhance performance.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback