Тройной оператор
condition ? expression-if-true : expression-if-false;
function findGreater(a, b) {
return a > b ? "a is greater" : "b is greater";
}
Owlthegentleman
condition ? expression-if-true : expression-if-false;
function findGreater(a, b) {
return a > b ? "a is greater" : "b is greater";
}
$customer->user->fullName ?? ''
$customer->user->fullName ? $customer->user->fullName : ''
isset($customer->user->fullName) ? $customer->user->fullName : ''