I have been looking for a php word wrap function. I know there's an
official PHP function but I've tried that and many of the functions
contributed on that php.net page and none do what I want...and some act
weird as well.
I want, If I say break at 150 chars then the function will break at the
nearest space to 150 ie. it will actually break at the word boundry. And
if theres a url it will not break inside a URL, it will leave URLS alone.
Please state/link me *specifically* what function if you know of one,
Thanks for the help,
Lee G.
official PHP function but I've tried that and many of the functions
contributed on that php.net page and none do what I want...and some act
weird as well.
I want, If I say break at 150 chars then the function will break at the
nearest space to 150 ie. it will actually break at the word boundry. And
if theres a url it will not break inside a URL, it will leave URLS alone.
Please state/link me *specifically* what function if you know of one,
Thanks for the help,
Lee G.
Comment