- var_dump: documentation ( source)
- preg_match: documentation ( source)
<?php
$string = 'https://s3.amazonaws.com/mm-component-creative/1480607188779_b917bfa537ee774742001e3819f2eda5_news.jph';
$text = preg_match(
'#((https?|ftp)://(\S*?\.\S*?))([\s)\[\]{},;"\':<]|\.\s|$)#i',
$string
);
var_dump($text);