fork(10) download
  1. <?php
  2.  
  3. $link = "http://d...content-available-to-author-only...e.com";
  4. $link = preg_replace(
  5. "#https?://\S+#i", '<a href="$0">(link)</a>',
  6. $link
  7. );
  8. echo $link;
Success #stdin #stdout 0.01s 82944KB
stdin
Standard input is empty
stdout
<a href="http://d...content-available-to-author-only...e.com">(link)</a>