RE: [PHP] Breaking a line in two

2008-08-17 Thread Warren Vail
quot;, do you really want your line to be 46 characters long because a long word was placed at the break point? Hth, Warren Vail > -Original Message- > From: Ron Piggott [mailto:[EMAIL PROTECTED] > Sent: Sunday, August 17, 2008 3:11 PM > To: PHP General > Subject: [PHP] Br

Re: [PHP] Breaking a line in two

2008-08-17 Thread Ashley Sheridan
Hi Ron, This should do the trick: ', $pos, 0); ?> Ash www.ashleysheridan.co.uk --- Begin Message --- Is there a way to add midway through a string, following the first available space? Example: The cat jumped up high. This is 23 characters long. I want added after the 12th character,

[PHP] Breaking a line in two

2008-08-17 Thread Ron Piggott
Is there a way to add midway through a string, following the first available space? Example: The cat jumped up high. This is 23 characters long. I want added after the 12th character, following the first space: The cat jumped up high. would be the desired output. Ron -- PHP General