fork download
  1. <?php
  2.  
  3. $str = 'Bla bla bla
  4. <img src="http://w...content-available-to-author-only...o.com/image1.jpeg">
  5. <img src="http://w...content-available-to-author-only...o.com/image2.jpeg">
  6. <a href="http://w...content-available-to-author-only...o.com/">http://w...content-available-to-author-only...o.com/</a>';
  7.  
  8. echo str_replace( '<img src="http' , '<img src="https' , $str );
Success #stdin #stdout 0s 82880KB
stdin
Standard input is empty
stdout
Bla bla bla
<img src="https://w...content-available-to-author-only...o.com/image1.jpeg">
<img src="https://w...content-available-to-author-only...o.com/image2.jpeg">
<a href="http://w...content-available-to-author-only...o.com/">http://w...content-available-to-author-only...o.com/</a>