|
-
February 12th, 2009, 06:58 PM
#1
Php - String end of line
Hello,
I got a text paragraph that i want to display as it is to do that i need to add a <br> tag to the end of each line the problem is how do i find the end of the line?
explode is useless here since each line may or may not contain \n or \r at the end so that's not a good way to divide the lines
i maybe missing something obvious here but unless i can get the position or a way to get to the end of the line there's not much i can do...
thx
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|