$p = ‘http://‘; $p = ‘/‘.preg_quote($p, ‘/‘).‘/‘; echo $p;/http\:\/\//
preg_quote
原文:https://www.cnblogs.com/pansidong/p/11779469.html