Re: Re: limiting lines

From: Date: Sun, 29 Jul 2001 16:05:55 +0000
Subject: Re: Re: limiting lines
Groups: php.general 
Request: Send a blank email to php-general+get-60106@lists.php.net to get a copy of this message
Thanks for the quick answers. Problem is, the only new lines are at the end of paragraphs, so that, in effect, is limiting them to 55 paragraphs. I'm using a <textarea wrap=physical> which says that it adds a "%0A%0D" (carriage return/line feed) at the end of each line. Anyone know how to convert that to a "\n" ? thanks again. Dan Mojolin: The Linux Employment Site http://mojolin.com > If you're expecting new lines, you could do this: > > $length = explode("\n", $message); > > if (sizeof($length) > 55) { > // error > } >

« previous php.general (#60106) next »