compare 2 arrays

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • V0d0o0

    compare 2 arrays

    $array1=[ifcfg-eth2 ifcfg-eth0:1 ifcfg-eth0:2 ifcfg-eth1:1]
    $arra2=[eth0 eth1 eth2]

    i am trying to compare them both using array_diff
    how can change the 2nd array so as to get the result in ifcfg-eth2
    cheers..

Working...