Answers for "coaleace operator"

0

coaleace operator

$a = NULL;
$b = 0;
$c = 2;

echo $a ?? $b; // 0
echo $c ?? $b; // 2
echo $a ?? $b ?? $c; // 0
echo $a ?? $x ?? $c; // 2
Posted by: Guest on June-22-2021

Browse Popular Code Answers by Language