dhimok Posted September 18, 2008 Share Posted September 18, 2008 Hi Everyone! I have two arrays in chunks and I want to compare them. If I find chunks from first array that match chunks from the other one then I want to exclude them. Anyone can give me a start idea? Here are the two arrays in chunks: Array ( [0] => Array ( [4] => 1 ) [1] => Array ( [3] => 1 ) ) Array ( [0] => Array ( [4] => 1 ) [1] => Array ( [3] => 1 ) [2] => Array ( [1] => 1 ) ) Thanks in advance! Link to comment https://forums.phpfreaks.com/topic/124829-array-compare-question/ Share on other sites More sharing options...
akitchin Posted September 18, 2008 Share Posted September 18, 2008 looks like you want array_diff(). not sure how it'll work two levels deep, but give it a shot. Link to comment https://forums.phpfreaks.com/topic/124829-array-compare-question/#findComment-644861 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.