php preg match数组,如何在php中执行模式为数组的preg_match?
首先,如果你每分钟只做几十次,那么在这种情况下我不会非常担心性能.这些匹配非常快,我不认为你会通过遍历模式数组并单独调用preg_match来解决性能问题,如下所示:$matches = false;foreach ($pattern_array as $pattern){if (preg_match($pattern, $page)){$matches = true;}}您确实可以像使用某些人建...