79356865

Date: 2025-01-15 01:54:53
Score: 2
Natty:
Report link

PHP 8.4+ includes array_find() which will do exactly what you want.

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: David Barratt