|
Posted by bobzimuta on 03/22/06 04:07
Yeah, you would get errors since $strip_it contains the '/' characters.
They have special meaning for the preg functions. If you ever become
interested, learn all about regular expressions. They are very fun!
In order to just remove $strip_it from all the text, try the
str_replace function. It'll be faster, too.
$result = str_replace( $strip_it, '', $initial_html );
Navigation:
[Reply to this message]
|