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

array_diff_ukey() public static method

Computes the difference of arrays using a specified key comparer.
public static array_diff_ukey ( 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_ukey(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 KeyComparer(new PhpUserComparer(ctx, key_comparer), false));
        }