[PHP] array_intersect problem

2006-12-25 Thread Leo Liu
Hi, I try to intersect associative array and it seems to fail to do so. Can anyone show me a walk around? For example I have array1 Array ( [0] = Array ( [imageID] = 1 ) [1] = Array ( [imageID] = 2 ) [2]

[PHP] Poping array which has the matching value

2006-12-20 Thread Leo Liu
Hi, I wanted to search through the array and pop out the value which match my search criteria. For example If array has {a,b,c,d,e,f} I wanna search for c and once I found it, took it out from the array. So the result of the array after operation will be {a,b,d,e,f} If I do array_pop();