class testClass
{
private static $staticValPrivate;
protected static $staticValProtected;
public static $staticValPublic;
private $valPrivate;
protected $valProtected;
public $valPublic;
public function getClassProperties()
{
return get_class_vars(__CLASS__);
}
public function getAllProperties()
{
return get_object_vars($this);
}
}
$x = new testClass();
var_dump($x->getClassProperties());
echo '<br />';
var_dump($x->getAllProperties());
echo '<br />';
var_dump(array_diff_key($x->getClassProperties(),$x->getAllProperties()));