Is there any way i can search a files array to match a certain string?
So i have a directory with images inside and i put them in a variable like so
$images = scandir('directory goes here');
now i want to search that images array for images with a certain name. Like for example all images with a name starting with 'cars_hatchback'.
I've tried using the glob function but it seems i'm coming up short.
Is there any way to accomplish this? Thanks in advance!
glob()function: php.net/manual/en/function.glob.php