Hi,
Can anyone tell me how to do the following...
I have a variable $msg that contains the following string:
Hello how are you this is my messge to you for you to read. I've made the message quite long to demonstrate what I want to achieve.
What I want to do is wrap it after every space that follows the 20th character - so the result from the example above would be...
Hello how are you this
is my messge to you
for you to read. I've
made the message quite
long to demonstrate
what I want to achieve.
Cheers,
Regan.
Can anyone tell me how to do the following...
I have a variable $msg that contains the following string:
Hello how are you this is my messge to you for you to read. I've made the message quite long to demonstrate what I want to achieve.
What I want to do is wrap it after every space that follows the 20th character - so the result from the example above would be...
Hello how are you this
is my messge to you
for you to read. I've
made the message quite
long to demonstrate
what I want to achieve.
Cheers,
Regan.