龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > web编程 > php编程 >

fread php 中用fread读取文件的代码演示

时间:2014-06-28 02:59来源:网络整理 作者:网络 点击:
分享到:
php 中用fread读取文件的代码演示 [代码片段(7行)]
<?php
$fh = fopen("testfile.txt", 'r') or
die("File does not exist or you lack permission to open it");
$text = fread($fh, 3);
fclose($fh);
echo $text;
?>
精彩图集

赞助商链接