>- see footer for list info -<

$linefeed = "\r\n";
 $Content2 =  str_replace($linefeed, "<BR/>", $Content);


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Adrian Lynch
Sent: 22 September 2005 16:15
To: Coldfusion Development
Subject: RE: [CF-Dev] OT PHP CR/LF replace


>- see footer for list info -<
$linefeed = "chr(13)chr(10)";

Is this right? I know the double quotes get parsed but I'm not sure it works
for functions in a string.

Ade

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Matt Horn
Sent: 22 September 2005 16:07
To: Coldfusion Development
Subject: Re: [CF-Dev] OT PHP CR/LF replace


>- see footer for list info -<
Hi
 yeah I got that far :)

but I think I may be doing it wrong
this is the bit

$linefeed = "chr(13)chr(10)";
 $Content2 =  str_replace($linefeed, "<BR/>", $Content);




Simon Baynes wrote:

>>- see footer for list info -<
>>
>>
>A combination of :-
>
>http://uk2.php.net/chr
>
>and
>
>http://uk2.php.net/str_replace
>
>PHP???? Oh why oh why?
>
>On 9/22/05, Matt Horn <[EMAIL PROTECTED]> wrote:
>
>
>>>- see footer for list info -<
>>>
>>>
>>Hi
>>
>>Can anyone give me some advice on how to replace CR/LF's with <BR /> in
>>a string? using PHP?
>>
>>
>>thanks
>>
>> Matt
>>
>>_______________________________________________
>>
>>For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo
>>
>>--
>>CFDeveloper Sponsors:-
>>
>>
>>>- Hosting provided by www.cfmxhosting.co.uk -<
>>>- Forum provided by www.fusetalk.com -<
>>>- DHTML Menus provided by www.APYCOM.com -<
>>>- Lists hosted by www.Gradwell.com -<
>>>- CFdeveloper is run by Russ Michaels, feel free to volunteer your
help -<
>>>
>>>
>
>
>--
>Simon Baynes
>www.simonbaynes.com
>_______________________________________________
>
>For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo
>
>--
>CFDeveloper Sponsors:-
>
>
>>- Hosting provided by www.cfmxhosting.co.uk -<
>>- Forum provided by www.fusetalk.com -<
>>- DHTML Menus provided by www.APYCOM.com -<
>>- Lists hosted by www.Gradwell.com -<
>>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
>>
>>
>
>
>
>
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.4/109 - Release Date: 21/09/2005

_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to