随笔 - 121  文章 - 3 评论 - 2 阅读 - 11万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

07 2019 档案
读取文件
摘要:function readFiles($file_path){ $handle = fopen($file_path, 'r'); while (!feof($handle)) { yield trim(fgets($handle)); } fclose($handle); } $words = readFiles('./word.txt'); foreach($words a... 阅读全文
posted @ 2019-07-22 15:13 晨曦年华 阅读(83) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示