Case Insensitive replace php for First Present
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1252693/php-str-replace-that-only-acts-on-the-first-match">PHP: str_replace that only acts on the first match?</a>  </p>
</blockquote>



<p>Now I used <code>str_ireplace($find,$replace,$str)</code> which replaces all the words which are present in <code>$str</code>. 
I want to replace first occurrence of a word in a string with the given string.</p>
