Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 30th, 2012  |  syntax: None  |  size: 0.34 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. preg_match condition when the block will execute?
  2. $A = Array (
  3.  [0] => KSO/OCMT/GBP66401,/ 001 VTS EMIS 43628
  4.  [1] => KSO/OCMT/GBP1836,22/ ENCT LCR 090724
  5. )
  6.  
  7.  
  8.  
  9. $test = 'KSO';
  10.  
  11. foreach($A as $temp_indice=>$temp)
  12. {
  13.       if(preg_match("`(.*)".$test."(.*)`im", $temp,$matches))
  14.        {
  15.         //WHEN THIS BLOCK IS EXECUTE?
  16.        }
  17.     }