the best way to check if a url is valid?
<p>i want to use php to detect the string which is called $myoutput &amp; check it if it's a valid link syntax or just a normal text.</p>

<p>the function should recognise all links formats including the ones contains GET parameters</p>

<p>it is preferred to not call that link to see if it's a valid link syntax by doing CURL or file_get_contents.</p>

<p>maybe with some preg match. or another solution</p>

<p>Thanks</p>
