<form >
<?php
    $newfile=file('./yuming.txt'); //返回数组的内容
    foreach($newfile as $v){
        echo '<div class="yuming">'.$v.'</div>';
    }
?>
    <input type="button"  />
</form>    

利用数组形式逐行读取并输出txt内容。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-28
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案