A safe optional field

Take your time, follow the code and check your understanding.

The codePHP arrays and requests
<?php
$user = ["name" => "Asha"];
echo $user["city"] ?? "Unknown";
Your answer4 min · no timer
What will the code print?

Show solution and explanation

The null-coalescing operator supplies the fallback when the array key is missing or null.

Unknown