Warning:preg_replace_callback():Modifier /e cannot be used with replacement callback
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/08 09:42:20
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);