php delete object property code example
Example 1: delete property from object php
unset($a->new_property);
Example 2: php unset
// Destroy a variable
<?php
unset ($var1, $var2.... )
?>
Example 3: remove field from object php
unset($a->new_property);