title: PHP find string into HTML text and replace it
body: <pre><code>    $text = "&lt;p&gt;Pellentesque ac urna eget diam volutpat suscipit
       ac faucibus #8874# quam. Aliquam molestie hendrerit urna, 
      vel condimentum magna venenatis a.&lt;br/&gt; Donec a mattis ante. 
  Ut odio odio, ultrices ut faucibus vel, #2514# dapibus sed nunc. In hac sed.&lt;/p&gt;";
  </code></pre>
  
  <p>I need to search for #myid# string, and replace with <code>&lt;a href='mylink.php?myid'&gt;myid&lt;/a&gt;</code></p>
  
  <p>How can I do?</p>