così può andar bene?
potresti anche annidarli anche se perderesti leggibilità del codeCodice PHP:
<?php
$frase="<h2>Ciao come stai?</h2><h2>Spero che tu stia bene</h2>";
$frase_1 = str_replace("</h2><h2>", "->", "$frase");
$frase_2 = str_replace("</h2>", ".", "$frase_1");
$frase_3 = str_replace("<h2>", "", "$frase_2");
echo $frase_3;
?>