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!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…