multi line string replace

From: Date: Thu, 23 May 2002 09:41:08 +0000
Subject: multi line string replace
Groups: php.general 
Request: Send a blank email to php-general+get-98851@lists.php.net to get a copy of this message
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.

« previous php.general (#98851) next »