//Filter HTML tags
function formatString($str){
$preg = "/<\/?[^>] >/i";
## // Judging whether the $ v is a multidimensional array
## using using using using use using using ‐ ‐ ‐ ‐ ‐ ‐ ‐ ‐ ‐ using using using using to use ’ through ’ through ’ using ‐ ‐ ‐ ‐ ‐ ‐ ‐ ‐ if(is_array($v)) $str[$k][$v] = formatString($v); $preg,'',$v);}
}
## return $str;
}
return $str;
Solved
//Filter HTML tags
function formatString($str){
$preg = "/</?[^>]+>/i";
$tree = array() ;
// Determine whether it is an array
if(!is_array($str)){
’ ’s ’ ’s ’ s ’ through ’ s ’ ’ out out out out out out out out out out out out out out of when to - - foreach ($str as $k=> } else if (! is_array ($ v)) {
$ tree [$ k] = preg_replace ($ preg, '', $ v);
}