xxxxxxxxxx
// This is used when you want to set a variable to a new value only if it’s currently not set or null.
function foo(string $bar = null) {
$bar ??= "Unknown";
// Do something
}
xxxxxxxxxx
$foo = $bar ?? 'something';
$foo = isset($bar) ? $bar : 'something';