<?php $haystack = ['one', 'two', 'three', 'four']; $test_needles = ['onE', 'tWo', 'THREE', 'four', 'five']; foreach ($test_needles as $needle) { printf( "%s : %s\n", $needle, array_all($haystack, fn($hay) => strcasecmp($hay, $needle)) ? 'missing' : 'found' ); }
You have javascript disabled. You will not be able to edit any code.