- file_get_contents: documentation ( source)
- var_dump: documentation ( source)
- fclose: documentation ( source)
- fgets: documentation ( source)
- fopen: documentation ( source)
<?php
$fh = fopen('test.txt', 'a');
var_dump(fgets($fh));
var_dump(file_get_contents('test.txt'));
fclose($fh);