Home >Backend Development >PHP Tutorial >调用文本文件内容_PHP

调用文本文件内容_PHP

WBOY
WBOYOriginal
2016-06-01 12:30:24803browse



调用文本文件内容




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




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
Previous article:初始化数组_PHPNext article:给数组增加元素_PHP