remove property from class in php code example
Example 1: delete property from object php
unset($a->new_property);
Example 2: php remove class attribute
$html = preg_replace('/class=".*?"/', '', $html);
unset($a->new_property);
$html = preg_replace('/class=".*?"/', '', $html);