Pick the correct behavior of the ?? operator.
$name = $_GET['name'] ?? 'Guest'; is used to provide a fallback value.
Ready to try it?
Create a free account and subscribe to take "Null Coalescing Operator ??". Earn 70 XP and track your internship progress.
Already have an account? Sign in