PHP头条
热点:

PHP为URL地址预设http字符串-PHP源码


代码

if (!preg_match("/^(http|ftp):/", $_POST['url'])) {
   $_POST['url'] = 'http://'.$_POST['url'];
}

www.phpzy.comtrue/php/34903.htmlTechArticlePHP为URL地址预设http字符串-PHP源码 代码 if (!preg_match("/^(http|ftp):/", $_POST[url])) { $_POST[url] = http://.$_POST[url];}...

相关文章

PHP之友评论

今天推荐