jeevamugunthan
3 months ago
376
4
Laravel

array search with array()

Posted 3 months ago by jeevamugunthan

hello everyone ,

i have a 2 array values like

$worker=Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 )

$other=Array ( [0] => 1 [1] => 2 [2] => 4  )

in this i need to take count of matching elements, and then take not matching elements of workers in to another array .

anyone please give the solution of this, thank you in advance..

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