]*>/','',$string)"."/> ]*>/','',$string)".">
Home >Backend Development >PHP Problem >How to replace html with regular php
How to replace html with php regularly: First create a PHP sample file; then use the regular expression "preg_replace('/]*>/','',$string)" Just replace all HTML tags.
Recommended: "PHP Video Tutorial"
PHP regular expression to replace all HTML tags
preg_replace('/<[^>]*>/','',$string)
The above is the detailed content of How to replace html with regular php. For more information, please follow other related articles on the PHP Chinese website!