Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
November 11, 2008, 12:51 pm
rate this thread
they other that contains file name stored in a DB (array2).
The idea is that I need to check if the files in array1 ar NOT present in
the DB array (2).
So i loop array1 and check against array2, not the problem. But when I find
a match It means its already in the DB so I need to remove it from the
array. not sure what function does this?
November 11, 2008, 3:29 pm
http://es2.php.net/array_diff should do the trick.
Apply http://es2.php.net/unset on the array element you want to remove.
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor al baño María: http://www.demogracia.com