Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001072

Re: [PHP] Re: limiting lines From: Jan Wilson (corocom <email protected>)
Date: 07/29/01

* dan <dan <email protected>> [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 <email protected>
Corozal Junior College   |  |:'  corozal.com corozal.bz
Corozal Town, Belize     |  /'  chetumal.com & linux.bz
Reg. Linux user #151611  |_/   Network, SQL, Perl, HTML

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>