<?php class Foo { public $bar; } $foo = new Foo(); $result = $foo->bar ?: "foo"; var_dump($result);
You have javascript disabled. You will not be able to edit any code.