Back

addhttp ===========>add add http if http/https is missed

Copy Below Code View As A Text File Show Text Only Show API Edit Code
                            

function addhttp($url) { if (!preg_match("~^(?:f|ht)tps?://~i", $url)) { $url = "http://" . $url; } return $url; }