src/Library/helper.php
/**
 * Returns an array not containing all the values of needles with wildcard
 *
 * @param array $haystack
 * @param array $needles
 * @return array
 */
Returns an array not containing all the values of needles with wildcard
@param array $haystack
@param array $needles
@return array
Returns an array not containing all the values of needles with wildcard @param array $haystack @param array $needles @return array
function array_value_excludes($haystack, $needles)
{
    foreach ((array) $needles as $needle) {
        $needle = str_replace('\*', '.*?', preg_quote($needle, '/'));
        $tmpResult = preg_grep('/^' . $needle . '$/i', array_values($haystack));
        $haystack = array_diff($haystack, $tmpResult);
    }
    return $haystack;
}
function array_value_excludes ( $ haystack , $ needles ) { foreach ( ( array ) $ needles as $ needle ) { $ needle = str_replace ( '\*' , '.*?' , preg_quote ( $ needle , '/' ) ) ; $ tmpResult = preg_grep ( '/^' . $ needle . '$/i' , array_values ( $ haystack ) ) ; $ haystack = array_diff ( $ haystack , $ tmpResult ) ; } return $ haystack ; }
Returns an array not containing all the values of needles with wildcard
 @param array $haystack
 @param array $needles
 @return array
Returns an array not containing all the values of needles with wildcard @param array $haystack @param array $needles @return array