If I have 2 PHP array’s that contain names. The first array contains over 100,000 keys
The second array is only 10,000 or less keys
I need to filter out any names from my 10,000 key array if the key exist in the master 100k array
So I will end up with a 3rd array that will contain the 10,000 key array minus any items that existed in the main array.
This is kind of confusing for me to explain so I hope I make sense here. If you can help I would appreciate it.
A sample array might look like this (both arrays will be in same format)
array(
'Coders4africa',
'uiri00',
'phileverson',
'nileshgr',
'MSVenom',
'dshafik',
'rafavilar'
)
From the docs: returns an array containing all the entries from array1 that are not present in any of the other arrays.