Darren_W
Hey THIS is FUN
   
Registered: 2001-10-10
Posts: 208
Loc: Bristol, England
|
Example used:
code:
$arr1 = a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z $arr2 = 1,2,3,4,f,g,a,34,42,23,c,z,o,r
"results for arraycomp(); elements that don't match:" ? ? for each $e in arraycomp($arr1, $arr2) ":" $e ? next ? "results for arraycomp(); matching elements:" ? ? for each $e in arraycomp($arr1, $arr2, 1) ":" $e ? next
get $
Result using suggested code:
code:
results for arraycomp(); elements that don't match:
:1 :2 :3 :4 :f :g :34 :42 :23 :c :z :o :r
results for arraycomp(); matching elements:
:f :g :a :c :z :o :r
Using Present:
code:
results for arraycomp(); elements that don't match:
:1 :2 :3 :4 :34 :42 :23
results for arraycomp(); matching elements:
:f :g :a :c :z :o :r
I've tested this a few times and this is the results I get? [ 25. February 2003, 23:22: Message edited by: Darren ]
_________________________
I want to share something with you - the three sentences that will get you through life. Number 1, 'cover for me.' Number 2, 'oh, good idea, boss.' Number 3, 'it was like that when I got here'.
|