Click here to Skip to main content
15,902,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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?
Posted

1 solution

fwrite($fp, '.main-content-user{width:565px}\n');
fwrite($fp, '.line,.lastUnit{overflow:hidden;*overflow:visible;*zoom:1}');
 
Share this answer
 
Comments
msymarina 7-Sep-13 9:48am    
What is $fp ?
If have many lines ,What we can do ? Ex:

.size-media{width:468px}.size-media-info{width:512px}.size-share-row-wide{width:696px}.size-toolbar-input{width:140px}.size-email,.size-print{width:50px}.size-seo-img{width:176px}.size-home-mm{width:310px}.size-product-summary{width:360px}

Does we can't use fwrite after } and then add break line ?
Member 13451443 13-Oct-17 1:49am    
Sir chat aplicatio get metode not work line break text area field

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900