For the question title, there indeed a null coalescing operator introduced in PHP7: return $array[$key] ?? null;. which is a shorthand for
確定! 回上一頁