$subject = preg_replace(’/^(?!https?:\/\/)/’, ‘http://’, $subject);
Entries from June 2008
preg_replace: fix missing http in url
June 13th, 2008 · No Comments
Tags: Web dev
$subject = preg_replace(’/^(?!https?:\/\/)/’, ‘http://’, $subject);
Tags: Web dev