title: How can I replace a soundcloud url to an iFrame (PHP)
body: <p>How can I detect and replace a soundcloud url in a text with an iframe using PHP:</p>
  <p>For example:</p>
  <p>This:</p>
  <pre><code>https://soundcloud.com/s/eminem-ft-dr-dre-old-time-sake
  </code></pre>
  <p>Into this:</p>
  <pre><code>&lt;iframe width=&quot;100%&quot; height=&quot;166&quot; scrolling=&quot;no&quot; frameborder=&quot;no&quot; src=&quot;https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/140068709&amp;amp;color=00aabb&amp;amp;auto_play=false&amp;amp;hide_related=false&amp;amp;show_comments=true&amp;amp;show_user=true&amp;amp;show_reposts=false&quot;&gt;&lt;/iframe&gt;
  </code></pre>