Replace a space with a newline every 2 spaces
| From: | Paul Halliday | Date: | Thu, 22 Apr 2010 17:29:06 +0000 |
| Subject: | Replace a space with a newline every 2 spaces | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-304436@lists.php.net to get a copy of this message | ||
Ex:
"This is the string and it is this long"
This is
the string
and it
is this
long
I found some long functions to achieve this but I couldn't help but
think that it could be done in a couple lines.
Possible?
Thanks.