Hello,

I was wondering what the difference was between the file en the fopen function. I always use the file function to read a file, like this:

$data = file('file.txt');

I know that I can also use the fopen function to do the same, but what are the difference between these two function? Which one is the best to use?