<?php
class myClass {
public $mine;
private $xpto;
static function test() {
var_dump(property_exists('myClass', 'xpto')); }
}
var_dump(property_exists('myClass', 'mine')); var_dump(property_exists(new myClass, 'mine')); var_dump(property_exists('myClass', 'xpto')); myClass::test();
?>