i have the following array
(
[0] => DHL - 4857998880
[1] => DHL - 4858005666
[2] => COA - 485344322
)
i want to loop through the array and if DHL found then i want to remove from the array. the numbers in front of DHL do not matter. any element with DHL in front i want to remove from the array.
i have created the following the regular expression to ignore the numbers in front but not sure how move forward from there.
foreach($result as $valDHL) {
$s = preg_replace("/[^a-z-]/i", "", $valDHL);
}