- property_exists: documentation ( source)
- var_dump: documentation ( source)
<?php
class T{
public $a = 1;
public $b = null;
}
$t = new T;
var_dump(isset($t->a));
var_dump(isset($t->b));
var_dump(property_exists($t, a));
var_dump(property_exists($t, b));