Pchp.Library.Arrays.array_uintersect_uassoc C# (CSharp) Method

array_uintersect_uassoc() public static method

Computes the intersection of arrays using specified comparers.
public static array_uintersect_uassoc ( Context ctx, PhpArray array, PhpArray array0 ) : PhpArray
ctx Pchp.Core.Context
array Pchp.Core.PhpArray
array0 Pchp.Core.PhpArray
return Pchp.Core.PhpArray
        public static PhpArray array_uintersect_uassoc(Context ctx, PhpArray array, PhpArray array0, params PhpValue[] arraysAndComparers)
        {
            PhpArray[] arrays;
            IPhpCallable key_comparer, value_comparer;

            if (!SplitArraysAndComparers(2, array0, arraysAndComparers, out arrays, out value_comparer, out key_comparer))
                return null;

            return SetOperation(SetOperations.Intersection, array, arrays,
                new EntryComparer(new PhpUserComparer(ctx, key_comparer), false, new PhpUserComparer(ctx, value_comparer), false));
        }