preg_quote

$p = 'http://';
$p = '/'.preg_quote($p, '/').'/';
echo $p;

/http\:\/\//

 

posted @ 2019-11-01 20:31  盘思动  阅读(108)  评论(0编辑  收藏  举报