Level 70
It's called Null Coalescing Operator in PHP. If need to check whether the value is null or not, that time you can use that.
Here is the example-
// Example usage for: Null Coalesce Operator
$action = $_POST['action'] ?? 'default';
// The above is identical to this if/else statement
if (isset($_POST['action'])) {
$action = $_POST['action'];
} else {
$action = 'default';
}
Ref: http://us2.php.net/manual/en/language.operators.comparison.php#language.operators.comparison.ternary
9 likes