src/LdapTools/Resolver/AttributeNameResolver.php
public static function arraySearchGetValue($needle, array $haystack)
    {
        $lcNeedle = strtolower($needle);

        foreach ($haystack as $value) {
            if ($lcNeedle == strtolower($value)) {
                return $value;
            }
        }

        return null;
    }
public static function arraySearchGetValue($needle, array $haystack)
    {
        $lcNeedle = strtolower($needle);

        foreach ($haystack as $value) {
            if ($lcNeedle == strtolower($value)) {
                return $value;
            }
        }

        return null;
    }
public static function arraySearchGetValue ( $ needle , array $ haystack ) { $ lcNeedle = strtolower ( $ needle ) ; foreach ( $ haystack as $ value ) { if ( $ lcNeedle == strtolower ( $ value ) ) { return $ value ; } } return null ; }
Given an array value determine if it exists in the array and return the value as it is in the array.

@param string $needle
@param array $haystack
@return string|null
Given an array value determine if it exists in the array and return the value as it is in the array .