- property_exists: documentation ( source)
- var_dump: documentation ( source)
<?php
class A{
public $stuff;
}
$x = new A;
var_dump(property_exists($x, "stuff"));
var_dump($x->stuff);
(unset)$x->stuff;
var_dump(property_exists($x, "stuff"));
var_dump($x->stuff);