Re: Re: limiting lines

From: Date: Sun, 29 Jul 2001 17:58:49 +0000
Subject: Re: Re: limiting lines
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-60107@lists.php.net to get a copy of this message
* dan <dan@mojolin.com> [010729 11:11]: > 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" ? I don't understand what you're saying about the new lines and end of paragraphs. But if you want to convert CRLF to LF, try: str_replace("\r\n","\n",$string); -- Jan Wilson, SysAdmin _/*]; corocom@btl.net Corozal Junior College | |:' corozal.com corozal.bz Corozal Town, Belize | /' chetumal.com & linux.bz Reg. Linux user #151611 |_/ Network, SQL, Perl, HTML

« previous php.general (#60107) next »