Re: [PHP-DB] Re: Convert plain text to HTML tagged text

2004-10-04 Thread Andrew Kreps
On Fri, 1 Oct 2004 23:33:46 -0400, GH [EMAIL PROTECTED] wrote: I have a question along this line... is it possible to have PHP do more than one str_replace at the same time? Have a look at the man page, it shows you how to use arrays to accomplish what you're trying to do.

Re: [PHP-DB] Re: Convert plain text to HTML tagged text

2004-10-04 Thread M Saleh EG
I think this should be posted somewhere else. Maybe the php-general list ?! This is no chemistry nor physics ! it's PHP-DB related issues right? no arrays or strings probs. Plz keep the consistancy of our good lists that are valuable for users who are us! On Mon, 4 Oct 2004 12:51:52 -0700,

Re: [PHP-DB] Re: Convert plain text to HTML tagged text

2004-10-02 Thread Bastien Koert
just run them in order $test=str_replace(...); $test=str_replace(...); $test=str_replace(...); $test=str_replace(...); bastien From: GH [EMAIL PROTECTED] Reply-To: GH [EMAIL PROTECTED] To: Felipe Alcacibar [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [PHP-DB] Re: Convert plain text

Re: [PHP-DB] Re: Convert plain text to HTML tagged text

2004-10-01 Thread GH
I have a question along this line... is it possible to have PHP do more than one str_replace at the same time? or would I need to pass through each time seperately? I.e I wasn to check for Line returns and change it to p, i want to replace [c] with a special formating tag etc...? Thanks?

[PHP-DB] Re: Convert plain text to HTML tagged text

2004-09-29 Thread Felipe Alcacibar
if the returnns are \n you only need nl2br(this \n test \n)... or preg_replace(/((\r|\n)|(\r\n|\n\r))/, br /, this \r\n test \r\n)... good luck... [EMAIL PROTECTED] escribió en el mensaje news:[EMAIL PROTECTED] cast.net... To the list: I've googled and searched the manual, but I'm still