","","
"),"",$html);" method That’s it."/> ","",""),"",$html);" method That’s it.">Home > Article > Backend Development > How to replace p tag in php
How to replace the p tag with php: First create a PHP sample file; then pass "str_replace(array("e388a4556c0f65e1904146cc1a846bee","","94b3e26ee717c64999d7867364b1b4a3"),"",$html); " method to replace the p tag.
Recommended: "PHP Video Tutorial"
The code example is as follows:
$html="<p>fdasf</p>"; echo $string = str_replace(array("<p>","","</p>"),"",$html);
The above is the detailed content of How to replace p tag in php. For more information, please follow other related articles on the PHP Chinese website!