Skip to content
Advertisement

Compare all value of two array in one foreach

I’ve 2 array in php

JavaScript

This is a result of select query wrote in codeigniter. so that is associative array. This is 2 query result one is for user list and second is for invited user list. I want check in user list which user is invited. So that I want to compare that array

JavaScript

but it compare only 2 value of array1 with array2 3rd value is not compare. How it could compare all value of array1 and array2 in above foreach loop

Advertisement

Answer

I found that answer

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement