PHP 7: null coalesce operator code example
Example: php null coalesce
// if $_POST['name'] doesn't exist $result will equal to John
$result = $_POST['name'] ?? 'John';
// if $_POST['name'] doesn't exist $result will equal to John
$result = $_POST['name'] ?? 'John';