代码示例:(标识:demo_php_file_readfile)
<!DOCTYPE html>
<html>
<body>

<?php
echo readfile("webdictionary.txt");
?>

</body>
</html>
运行结果: