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

array_diff_uassoc() public static method

Computes the difference of arrays using a specified comparer.
public static array_diff_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_diff_uassoc(Context ctx, PhpArray array, PhpArray array0, params PhpValue[] arraysAndComparer)
        {
            PhpArray[] arrays;
            IPhpCallable key_comparer, cmp;

            if (!SplitArraysAndComparers(1, array0, arraysAndComparer, out arrays, out key_comparer, out cmp)) return null;

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