Re: split line of text
| From: | Philip Hallstrom | Date: | Tue, 27 Sep 2005 21:52:36 +0000 |
| Subject: | Re: split line of text | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-223322@lists.php.net to get a copy of this message | ||
if "chunk_split" function split the line of text (here on 50 char) I was wondering if there exists one function who take care if the 50 char is in the middle of the word and split the line first "empty space" before the word or just after? $newstring = chunk_split($row[1], 50, '<br />'); echo $newstring;http://us3.php.net/manual/en/function.wordwrap.php