[php][txtfile]Lire un fichier avec la fonction文件

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[php][txtfile]Lire un fichier avec la fonction文件相关的知识,希望对你有一定的参考价值。

Read a file with the file function
  1. <?php
  2. //le fichier doit préexister
  3. $lines = file("fichier.txt");
  4. foreach($lines as $n => $line){
  5. echo $line . "<br />";
  6. }
  7. ?>

以上是关于[php][txtfile]Lire un fichier avec la fonction文件的主要内容,如果未能解决你的问题,请参考以下文章