RE: [PHP-WIN] Line feeds and WRAP="soft" TEXTAREA element
| From: | Ross Fleming | Date: | Fri, 31 May 2002 03:43:01 +0000 |
| Subject: | RE: [PHP-WIN] Line feeds and WRAP="soft" TEXTAREA element | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-14036@lists.php.net to get a copy of this message | ||
Thanks for that, if only because I didn't know PHP included the "foreach"
function, useful to know. :)
Ross
>-----Original Message-----
>From: Michael Reynolds [mailto:wshs_chat@yahoo.com]
>Sent: 31 May 2002 04:36
>To: php-windows@lists.php.net
>Subject: Re: [PHP-WIN] Line feeds and WRAP="soft" TEXTAREA element
>
>
>
>--- Michael Reynolds <wshs_chat@yahoo.com> wrote:
>>
>> --- Matt Babineau <matt@criticalcode.com> wrote:
>> > Is there any way to detect linefeeds and replace them with <BR> for
>> > output in html?
>> >
>>
>> $data=explode("\n",$data);
>> foreach ($data as $line) {
>> print($data."<br>\n");
>
>(oops) replace that with:
>print($line."<br>\n");
>
>> }
>> $data=implode("\n",$data);
>>
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! - Official partner of 2002 FIFA World Cup
>http://fifaworldcup.yahoo.com
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>