Guest User

Untitled

a guest
Jun 30th, 2012
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment