Function

property_exists

Synopsis

property_exists(mixed, string): bool

Area
Runtime\PS\Core\Reflect\property_existsareas

Description

property_exists reports whether object $object_or_class has property $property, set or declared; a class name is not accepted and returns false.

A declaration outlives an unset, and a value a binding returned answers for its exported Go fields, resolved the way a property read resolves them. A throwable answers for none, as get_object_vars does.

Usage

$value = property_exists($arguments);
$fn = property_exists(...);

See also