Warning:preg_replace_callback():Modifier /e cannot be used with replacement callback
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/20 03:01:29
Warning:preg_replace_callback():Modifier/ecannotbeusedwithreplacementcallbackWarning:preg_replace_ca
Warning:preg_replace_callback():Modifier /e cannot be used with replacement callback
Warning:preg_replace_callback():Modifier /e cannot be used with replacement callback
Warning:preg_replace_callback():Modifier /e cannot be used with replacement callback
你要在 preg_replace_callback()第二个参数回调一个函数
例:
function my_callback($text){
return $text;
}
echo preg_replace_callback("\^[a-z]\",'my_callback',$text);