Re: Use of substr()

From: Date: Fri, 03 Nov 2006 06:48:58 +0000
Subject: Re: Use of substr()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-244133@lists.php.net to get a copy of this message
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 add new lines to this input at appropriate locations.
Why don't you use the wordwrap() function built into php? php.net/wordwrap - you can set the length etc of each line you want. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#244133) next »