Extract URL's from a string using PHP
<p>How can we use PHP to identify URL's in a string and store them in an array?</p>

<p>Cannot use the <code>explode</code> function if the URL contains a comma, it wont give correct results. </p>