摘要: php读取大文件的方法 <?php function readFile($file) { # 打开文件 $handle = fopen($file, 'rb'); while (feof($handle) false) { # 重点 每次读取 1024 个字节 yield fread($handle 阅读全文
posted @ 2019-12-24 18:38 rianley 阅读(340) 评论(0) 推荐(0) 编辑