PHP preg_replace три раза с тремя разными шаблонами? правильно или неправильно?

привет, ребята! simple question... Is this the best way to do it?

$pattern1 = "regexp1";
$pattern2 = "regexp2";
$pattern3 = "regexp3";

$content = preg_replace($pattern1, '', $content);
$content = preg_replace($pattern2, '', $content);
$content = preg_replace($pattern3, '', $content);

I have three search-patterns I want to filter out! Is my code above appropriate or is there a better way?

Thank you for the info

10
задан matt 19 February 2011 в 17:43
поделиться