| Posted by Chung Leong on 08/11/06 00:32 
Chuck Anderson wrote:> "Tip: Do not use preg_match() if you only want to check if one string is
 > contained in another string. Use strpos() or strstr() instead as they
 > will be faster."
 
 But looping through the array and calling a function on each element
 will certainly be slower than calling preg_grep() once.
  Navigation: [Reply to this message] |