I am wondering if there is in php7.3/php7.4 somehow possible to check inline if and object exists and if yes then get it's property like nullsafe operator. Like this it returns error:
$object = null;
echo $object->property;
But like this it is ok but still too long for me.
$object = ['property' => 'success'];
echo $object->property;
I would like to see something like in Javascript object?.property
but this does not work:
//$object = ['property' => 'success'];
echo $object?->property;