$encoding = mb_internal_encoding(); }// $subject が複数ならば各要素に繰り返し適用するif(is_array($subject) || $subjectinstanceofTraversable) { $result =array();foreach($subjectas$key => $val) { $result[$key] =mb_str_replace($search, $replace, $val, $encoding); }return$result;...