PHP - File Handling
Which PHP function reads the entire content of a file into a string in one call?
file_get_contents() reads the whole file into a string. fgets() reads one line, fread() reads a specified number of bytes, and file() reads the file into an array of lines.file_get_contents() is designed to read the entire file content at once as a string.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions