property_exists()
function property_exists(mixed $object_or_class, string $property): bool
Checks whether an object or class has a property.
Parameters:
$object_or_class(mixed)$property(string)
Returns: bool
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/symbols/property_exists.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how property_exists is implemented in the compiler, see the internals page.