$s = "PHP";
echo $s ?? "Empty...";
echo "<br>";
echo !empty($s) ? $s : 'Empty'; // Equivalent to: echo $s ?? "Empty...";
echo "<br>";
$s = null;
echo $s ?? "Empty...";
echo "<br>";
echo !empty($s) ? $s : 'Empty'; // Equivalent to: echo $s ?? "Empty...";
/*
run:
PHP
PHP
Empty...
Empty
*/