Home  >  Article  >  Backend Development  >  用PHP程序直接调用文本文件内容的实例_PHP教程

用PHP程序直接调用文本文件内容的实例_PHP教程

WBOY
WBOYOriginal
2016-07-13 17:29:59955browse

如何调用文本文件内容 ? 




调用文本文件内容




// 打开文件同时,打印每一行
$myFile = file( "data.txt");
for($index = 0; $index {
print($myFile[$index]."
");
}
?>


 

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/509210.htmlTechArticle如何调用文本文件内容? HTML HEAD TITLE调用文本文件内容/TITLE /HEAD BODY CENTER ? //打开文件同时,打印每一行 $myFile=file("data.txt"); for($index=0;$ind...
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