<?php class Foo { public function foo() { return null; } } $foo = new Foo; ?> <?= $foo->foo() ?? 'test' ?> <?= null?->foo() ?? 'test' ?> <?= isset($foo->foo()) ? $foo->foo() : 'test' ?>
You have javascript disabled. You will not be able to edit any code.