时间:2021-07-01 10:21:17 帮助过:19人阅读
iconv_set_encoding("internal_encoding", "GBK"); //根据你的字符修改$a = "你我他它她";$b = "ilove上海每一天";$c = iconv_substr($a, rand(0, iconv_strlen($a)-1), 1);$n = rand(0, iconv_strlen($b)-1);echo iconv_substr($b, 0, $n) . $c . iconv_substr($b, $n);
iconv_set_encoding("internal_encoding", "GBK"); //根据你的字符修改$a = "你我他它她";$b = "ilove上海每一天";$c = iconv_substr($a, rand(0, iconv_strlen($a)-1), 1);$n = rand(0, iconv_strlen($b)-1);echo iconv_substr($b, 0, $n) . $c . iconv_substr($b, $n);