Home > php教程 > php手册 > body text

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

WBOY
Release: 2016-06-13 10:29:28
Original
843 people have browsed it

如何调用文本文件内容 ? 




调用文本文件内容




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


 
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!