Re: [PHP] Use of substr()

2006-11-03 Thread Richard Lynch
On Fri, November 3, 2006 12:33 am, jekillen wrote: > I am scratching my head over the following: > I have written code that is supposed to format text > sent from a form in a textarea form element. > This text does not have new lines added if > the text is allowed to automatically wrap to the > nex

Re: [PHP] Use of substr()

2006-11-02 Thread Shuping Zhou
function format_text($a, $b) // $a is text to format, from textarea, $b is line length { $line = array(); $limit = (strlen($a)/$b); for($i = 0; $i < $limit; $i++) { $start =

Re: [PHP] Use of substr()

2006-11-02 Thread Chris
jekillen wrote: Hello all; I am scratching my head over the following: I have written code that is supposed to format text sent from a form in a textarea form element. This text does not have new lines added if the text is allowed to automatically wrap to the next line. I want to automatically ad