如何在PHP中从文本文件中添加break行 [英] How to add break line after } from text file in PHP

查看:65
本文介绍了如何在PHP中从文本文件中添加break行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在我的文本文件中使用PHP添加break行。



.main-content-user {width:565px} .line,。 lastUnit {溢出:隐藏; *溢出:可见; *缩放:1}



我想要的结果:



.main-content-user {width:565px}

.line,.lastUnit {overflow:hidden; * overflow:visible; * zoom:1}



有没有人有想法?

解决方案

fwrite(


fp,'。main-content- user {width:565px} \ n');

fwrite(


fp,'。line,.lastUnit {overflow:hidden; * overflow:visible *缩放:1});

I am trying to add break line after } from my text file using PHP.

.main-content-user{width:565px}.line,.lastUnit{overflow:hidden;*overflow:visible;*zoom:1}

Result i want :

.main-content-user{width:565px}
.line,.lastUnit{overflow:hidden;*overflow:visible;*zoom:1}

Does anyone have idea?

解决方案

fwrite(


fp, '.main-content-user{width:565px}\n');
fwrite(


fp, '.line,.lastUnit{overflow:hidden;*overflow:visible;*zoom:1}');


这篇关于如何在PHP中从文本文件中添加break行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆