fread

It can be used to read the content from a file

Example

<?php

$fp = fopen(‘test.txt’, ‘r+’);

echo fread($fp,filesize(“test.txt”));

fclose($fp);

?>

Share