Strings & Patterns Learning Mode

Which PHP function does the following script simulate on a UNIX machine?

<?php
function my_funct ($filename)
{
$f = file_get_contents ($filename);
 return explode ("\n", $f);
}
?>