php Programming Glossary: arraya
How does array_diff work? http://stackoverflow.com/questions/2479963/how-does-array-diff-work It obviously couldn't work as follows function array_diff arraya arrayb diffs array foreach arraya as keya valuea equaltag 0.. function array_diff arraya arrayb diffs array foreach arraya as keya valuea equaltag 0 foreach arrayb as valueb if valuea.. know a better solution EDIT @animuson function array_diff arraya arrayb foreach arraya as keya valuea if in_array valuea arrayb..
|