7 months ago

Duplication on Merged Inner Arrays

Posted 7 months ago by xtremer360

I'm trying to figure out how I can validate that there is not a duplicate value for group1 that is inside of mainArray. So it would match all of the groups that would be inside of mainArray and if there are duplicates then error.

Any idea how to do that?

mainArray [
    'subArray1' = [
        'group1' => [1,2,3],
    'subArray2' => [
        'group1' => [1,4,5]

Please sign in or create an account to participate in this conversation.