can we have a looky at ur actual code for this? might help us to let you
know where exactly the problem is with ur code...



-----Original Message-----
From: Aaron [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 23 May 2002 7:41 PM
To: [EMAIL PROTECTED]
Subject: [PHP] multi line string replace


cant seem to get it to work
say this is the string

"           <tr>
                <td colspan="3" valign="top" class="footerline">"

replace with "hello".

problem is, i cant even get other functions to get the position of the
string.

No problems finding or matching replacing
"           <tr>"
or
"                <td colspan="3" valign="top" class="footerline">"

but together no luck.  strstr, stristr etc str_replace.

also tried
"           <tr>\n                 <td colspan="3" valign="top"
class="footerline">"

also tried doing a nl2br  on the compare string and actual string first
to see if that'd work. replaced the exact same bits.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to