- preg_match condition when the block will execute?
- $A = Array (
- [0] => KSO/OCMT/GBP66401,/ 001 VTS EMIS 43628
- [1] => KSO/OCMT/GBP1836,22/ ENCT LCR 090724
- )
- $test = 'KSO';
- foreach($A as $temp_indice=>$temp)
- {
- if(preg_match("`(.*)".$test."(.*)`im", $temp,$matches))
- {
- //WHEN THIS BLOCK IS EXECUTE?
- }
- }