Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
PHP
php remove class attribute
HiLYorks
Programming language:
PHP
2021-03-30 04:55:31
0
Q:
php remove class attribute
Artem Tihonov
Code:
PHP
2021-06-16 06:57:15
$html = preg_replace('/class=".*?"/', '', $html);
1
Tags
php
class
remove
attribute
Related
php create object without class
php remove span tags from string
php remove anchor tag from string
php remove bom
delete property from object php
php delete element by value
New to Communities?
Join the community