PHP - Operators
Which of the following is the correct syntax to use the null coalescing operator in PHP?
?? between two expressions.$a ?? $b which is correct syntax. $value = $a ?: $b; uses the ternary shorthand, not null coalescing. $value = $a ? $b; is incomplete syntax. $value = $a ??= $b; uses ??= which is a different operator (null coalescing assignment).15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions