我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

在Windows记事本上查看文件时“ ”无法正常工作

When i tried to write a file with using fwrite in PHP it works in Notepad++ but when i tried to view my file in Notepad it did not detect the new line. Here is my code.

$log = "[".date_format($date,'Y/m/d')."-".$sampleVariable."]".$sampleVariable."/".$terminal."/".
                            $sampleVariable."/".$result."/".$sampleVariable;

fwrite($filepointer, $log."
");

I also tried PHP_EOL but it is still the same.

近期文章

  • 带有phpexcel的arrayChunk输出一些数值
  • 使用where子句时Codeigniter分页问题
  • 如何从感谢页面中删除帐单邮寄地址?
  • 在Laravel中使用htaccess重定向Cms页面
  • 在Laravel中查看数据库中的多个结果
  • 服务器下载index.php而不是执行laravel
  • 安装供应商时,Composer检测到5.6而不是7.1
  • 当$ search_criteria为null时,imap_sort的行为是什么?
  • 如何在自定义WordPress主题中包含博客页面?
  • 与localhost的连接有效,但不是ip
  • 如何在scssphp中设置php变量
  • 如果数据库中存在,则更新选择值
  • 如何从wordpress网站到处删除一个特定的类别标签
  • 如何制作动态的月,日,年错误消息
  • 我如何从php下载链接中提取文件名
  • Cakephp如何通过desc加入group by来订购?
  • 如何在同一个文件中加载类和PHPMailer
  • 如何在PHP Laravel中使用get()在Select Query中添加假属性
  • 游标不能为PHP产生多个迭代器mongodb错误
  • 在范围内设置后重写列

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华