Do multiple search and replaces in PHP string?
<p>I am working with PHP and WordPress right now, I need to basically run the below code to Replace text in <code>$current_path</code> with the text in <code>$new_path</code> if <code>$current_path</code> EXIST in <code>$content</code></p>

<p>I would prefer to be able to iterate over an array instead of running this over and over like this, or any better method would be nice?</p>

<pre><code>$content = 'www.domain.com/news-tag/newstaghere'

$current_path = 'test-tag';
$new_path = 'test/tag';
$content = str_replace($current_path, $new_path, $content);

$current_path = 'news-tag';
$new_path = 'news/tag';
$content = str_replace($current_path, $new_path, $content);

$current_path = 'ppc-tag';
$new_path = 'ppc/tag';
$content = str_replace($current_path, $new_path, $content);
</code></pre>
