For Programmers: Free Programming Magazines  


Home > Archive > PHP Programming > January 2005 > compare 2 arrays









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author compare 2 arrays
V0d0o0

2005-01-28, 8:56 am

$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..

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com