","","

"),"",$html);" method That’s it."/> ","","

"),"",$html);" method That’s it.">

Home  >  Article  >  Backend Development  >  How to replace p tag in php

How to replace p tag in php

藏色散人
藏色散人Original
2020-10-12 10:08:2644980browse
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.

How to replace p tag in php

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn