本文介绍了从文本文件读取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我只是想知道如何在php中读取文本文件,我想从文本文件中显示最后200个条目(每个条目都在一个新行中)。
John White
Jane是否
John是否
Someones Name
等等
谢谢!
解决方案
使用,或者可能只是。
I'm just wondering how I can read a text file in php, I'd like to have it display the last 200 entries (their each on a new line) from the text file.
Like
John White Jane Does John Does Someones Name
and so on
Thanks!
解决方案
Use fopen and fgets, or possibly just file.
这篇关于从文本文件读取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!