ErrorException Undefined array key 1 code example Example: Warning: Undefined array key 1 return $table[$key] ?? null;