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

Subcribe now to LUNLUN.com newsletter and you will get the cheatsheet "Top 10 Trigonometry Formulas" as a gift.
It is free to subscribe.
You may unsubscribe at any time.
The privacy policy is here
.

Your email address:



0