What is the difference between file_get_contents and file, in PHP?

0

What is the difference between file_get_contents and file, in PHP?

What is the difference between file_get_contents and file, in PHP?

file_get_contents reads an entire file into a string.
file reads an entire file into an array.

More details are here:
https://www.php.net/manual/en/function.file-get-contents.php
https://www.php.net/manual/en/function.file.php

Have you seen this?

0