i have the following array
[0] => 1009
[1] => 1033
[2] => 2052
[3] => ANNEX 4E
[4] => Bill of Lading
[5] => CERTIFICATE OF ANALYSIS
[6] => CERTIFICATE OF ORIGIN
[7] => DHL - 5130431633
i want to remove the value with DHL followed by any number. any value containing DHL i want to remove.
for example DHL - 5130431633 or DHL - 51304345654 should be removed number in front of the dhl do not matter
i have use the following code but it do not work
$xmlarrayresultdocsave = preg_grep("/^DHL$/i", $xmlarrayresultdocsave,
PREG_GREP_INVERT);