Reputation: 996
I have text within one of my tables which is a long description, but the text is all clumped together. I need a way for PHP to find each full stop and add a line break after it, so I can treat the description as a list.
A better solution would be to add an
Thanks.
Upvotes: 0
Views: 3600
Reputation: 150138
You can use the str_replace function to replace each occurrance of a full stop with a full stop plus a line break. If you are rendering HTML, a line break is probably the <br/>
tag.
Upvotes: 2