property_exists
spatie/once
Supported Versions: PHP 5 >= 5.1.0, PHP 7, PHP 8
Checks if the object or class has a property
<?php property_exists
(
object
|
string $object_or_class
,
string $property
):
bool