file fonksiyonu

Php'de file fonksiyonu nasıl kullanılır?

myfile.txt contains this:

Hello
This
Is
My
File

<?php
$contents 
file("myfile.txt");

print_r($contents);  
?>

Array([0] => Hello [1] => This [2] => Is [3] => My [4] => File)