Is it possible to delete an object's property in PHP?

ashelyzd

New Member
If i have an stdObject say, $a.Sure there's no problem to assign a new property, $a,\[code\]$a->new_property = $xyz;\[/code\]But then I want to remove it, so unset is of no help here.So,\[code\]$a->new_property = null;\[/code\]Is kind of it. But is there a more 'elegant' way?Thanks in advance.
 
Back
Top