← All docs

property_exists()

Checks whether an object or class has a property.

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

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how property_exists is implemented in the compiler, see the internals page.