How to replace only once a find string?
<p>For example there is a string :</p>

<pre><code>$valeur = "a-b-c-b-d-e";
</code></pre>

<p>The letter "b" is present twice in this. I want to replace only the first "b".</p>

<p>How to do that ? I used <code>str_replace</code> but it replaces all occurences.</p>
