如果模式是preg_match中的变量,那么使用分隔符这个语法是否正确?
if (!preg_match("/{$_SERVER["SERVER_NAME"]}/",$variable)){ ....... }
php preg-match
php ×1
preg-match ×1