I am attempting to remove certain elements of an array that contain a string. Here is my code:
foreach ($first as $temp) {
if (preg_match("/logo/", "$temp") > "0") {
unset($first[$temp]);
}
}
The array is called first and it contains the following:
27_01.jpg
27_02.jpg
27_03.jpg
29_01.jpg
29_02.jpg
29_logo.jpg << This needs to be removed
31_01.jpg
31_02.jpg
31_03.jpg
Any help would be great, TX!!!