I have some coding that was done years ago for me using eregi. I know that I need to change it to preg_match but have no idea how to do this.
the code is:
if (eregi("\.jpg|\.gif|\.png", $f))
array_push($files, $path.$f);
Any help would be greatly appreciated
thanks