I have been playing around with how to exclude any file name that includes the word thumb so basically
*thumb* when i get a file list from a dir. But my attempts are failing...
I am thinking the only way to do it is to use foreach on the result and filter out the file names i dont want. I dont think i can do it using tthe array_diff command
current code i am skipping the linux [..] and [.] dir listings
$logo_list = array_diff(scandir(CORE_LOCAL_LOGO_IMAGES), array('..', '.'));
//this did not work
$logo_list = array_diff(scandir(CORE_LOCAL_LOGO_IMAGES), array('..', '.','*thumb*'));
but how do i also skip *thumb*?
Update: best i could come up with is to wait to filter it in my foreach for the html select
if(strstr($val, 'thumb') === false)