private function inDigits($digit, array $digits, callable $detect)
    {
        foreach ($digits as $haystack) {
            if ($digit !== $haystack && $detect($haystack, $digit) !== false) {
                return true;
            }
        }

        return false;
    }
private function inDigits($digit, array $digits, callable $detect)
    {
        foreach ($digits as $haystack) {
            if ($digit !== $haystack && $detect($haystack, $digit) !== false) {
                return true;
            }
        }

        return false;
    }
private function inDigits ( $ digit , array $ digits , callable $ detect ) { foreach ( $ digits as $ haystack ) { if ( $ digit !== $ haystack && $ detect ( $ haystack , $ digit ) !== false ) { return true ; } } return false ; }
Tells if a conflict exists for a digit in a list of digits.
@param string $digit A single digit to test
@param string[] $digits The list of digits for the numeral system
@param callable $detect Function used to detect the conflict
@return bool True if a conflict exists, false if not
Tells if a conflict exists for a digit in a list of digits .