title: PHP - replace <img> tags and return src
body: <p>Mission is to replace all <code>&lt;img&gt;</code> tags in given string with <code>&lt;div&gt;</code> tags and <code>src</code> property as inner text.
  In search for the answer I found <a href="https://stackoverflow.com/questions/1107194/php-remove-img-tag-from-string">similar question</a></p>
  
  <pre><code>&lt;?php
  
      $content = "this is something with an &lt;img src=\"test.png\"/&gt; in it.";
      $content = preg_replace("/&lt;img[^&gt;]+\&gt;/i", "(image) ", $content); 
      echo $content;
  
  ?&gt;
  </code></pre>
  
  <p>result:</p>
  
  <pre><code>this is something with an (image)  in it.
  </code></pre>
  
  <p><strong>Question: How to upgrade script ant get this result:</strong></p>
  
  <pre><code>this is something with an &lt;div&gt;test.png&lt;/div&gt;  in it.
  </code></pre>