to find and replace the string in php
<p>I have got a number of values by a foreach loop. Now I want to check each the values with a string.</p>

<p>My string is <code>"http://www.example.com/TantraProjects/Ranjit/nt_plugin"</code></p>

<p>I have the values like written below:</p>

<pre><code>http://blogsearch.google.com/blogsearch?scoring=d&amp;partner=wordpress&amp;q=link:http://www.example.com/TantraProjects/Ranjit/nt_plugin/

http://blogsearch.google.com/blogsearch_feeds?scoring=d&amp;ie=utf-8&amp;num=10&amp;output=rss&amp;partner=wordpress&amp;q=link:http://www.example.com/TantraProjects/Ranjit/nt_plugin/

link:http://www.example.com/TantraProjects/Ranjit/nt_plugin/ - Google Blog Search
</code></pre>

<p>Now I want to change all the values, replacing <code>http://www.example.com/TantraProjects/Ranjit/nt_plugin</code> with <code>MY NEW PATH</code>.</p>

<p>How can I replace the string using php?</p>
