I'm sure this is a simple solution, just haven't found exactly what I needed.
Using php, i have a variable $source. I wanna check if $source starts with 'http'.
if ($source starts with 'http') {
$source = "<a href='$source'>$source</a>";
}
Thanks!