2019年6月11日

获取文件指定行数的内容

摘要: ``` // 获取文件指定行数的内容 function getFileLineHandle($fileName, $linePosition) { $f = new \SplFileObject($fileName, 'r'); $f->seek($linePosition); try { $content = $f->getCurrentLine(); ... 阅读全文

posted @ 2019-06-11 16:59 果然朝辉 阅读(593) 评论(0) 推荐(0) 编辑

导航