Is there a function in php3 to remove all php, but not html tags from a string, thanks.
Use a regexp to strip PHP from a string. Assuming you have PCRE support:
$str = preg_replace( "/(?:<\?((php|PHP)?)).*(?:\?>)/", "", $str);
I didn't test that regex pattern, but I'm fairly confident it'll work.