79726320

Date: 2025-08-05 15:16:41
Score: 2.5
Natty:
Report link

In this particular case using null coalescingmay be good option.

 $host = $s['HTTP_X_FORWARDED_HOST'] ?? $s['HTTP_HOST'] ?? $s['SERVER_NAME'];

reference: https://www.php.net/manual/en/language.operators.comparison.php#language.operators.comparison.coalesce

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ot_ik_