php函数:substr_replace( string, s t r i n g , insert_string, $start, 0)
参数说明:
1. $string: 被插入的字符串
2. $insert_string: 待插入的字符串
3. $start: 插入的位置
Instance:
$string = "abc";
$insert_string = '123";
$start = 1;
$newstring = substr_replace($string, $insert_string, $start, 0);
echo $newstring; /* $newstring 为 a123bc*/