复制代码 代码如下: //插入一段字符串 function str_insert($str, $i, $substr) { for($j=0; $j$startstr .= $str[$j]; } for ($j=$i; $j$laststr .= $str[$j]; } $str = ($startstr . $substr . $laststr); return $str; } Popularity: 3%