- property_exists: documentation ( source)
- var_dump: documentation ( source)
- defined: documentation ( source)
- method_exists: documentation ( source)
<?php
class Foo
{
private const BAR = 1;
private $bar = 1;
private function bar()
{
}
}
$foo = new Foo;
var_dump(property_exists($foo, 'bar'));
var_dump(method_exists($foo, 'bar'));
defined('Foo::BAR');