文本文件fff.txt中去除回车与空格;

  $aa = file_get_contents('./fff.txt');

    $bb = str_replace(array("\r\n", "\r", "\n"),'、',$aa);
    echo "<pre>";
    print_r($bb);

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2021-07-27
  • 2022-12-23
猜你喜欢
  • 2022-02-19
  • 2022-12-23
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案