Home  >  Article  >  Backend Development  >  求一段php调用txt资料数据并赋值的代码

求一段php调用txt资料数据并赋值的代码

WBOY
WBOYOriginal
2016-06-13 12:36:24921browse

求一段php调用txt文件数据并赋值的代码
首页文件 index.html
引用文件:./txt/pan.txt中的第三行:false或者yes
在index.html中做一个if..else的判断语句,变量$do的值是pan.txt的第三行中的数值;

这个php该怎么写呢?

引用变量 引用txt if...else 判断语句
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn