<div class="codetitle"> <span><a style="CURSOR: pointer" data="30599" class="copybut" id="copybut30599" onclick="doCopy('code30599')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code30599"> <br>//插入一段字符串 <br>function str_insert($str, $i, $substr) <br>{ <br>for($j=0; $j$startstr .= $str[$j]; <br>} <br>for ($j=$i; $j<strlen>$laststr .= $str[$j]; <br>} <br>$str = ($startstr . $substr . $laststr); <br>return $str; <br>} <br></strlen> </div> <br>Popularity: 3%