Q. PHP wordwrap + \ n
Q. PHP wordwrap + \ n
- Started
- Last post
- 1 Response
- ********
I used wordwrap to wrap some text and also split long urls. Trouble is, now my nl2br don't work as it should (obviously) and even if it did, it would bugger the URLs once wrapped :(
Is there another way? Some function I've missed?
- ********0
Ah. Think I fiexd it. wordwrap doesn't have to break on a \n, it can also be a " " (space).
wordwrap($text, 68, " ", 1)