正则批量替换a标签内容
$aa= preg_replace_callback( '/(?<=<a)[^>]*([^<]*)(?=<)/i', function ($matches) use(&$newHref) { return next($newHref); }, $aa );
$aa= preg_replace_callback( '/(?<=<a)[^>]*([^<]*)(?=<)/i', function ($matches) use(&$newHref) { return next($newHref); }, $aa );