📅  最后修改于: 2022-03-11 14:54:35.906000             🧑  作者: Mango
$pos = strpos($haystack, $needle);
if ($pos !== false) {
$newstring = substr_replace($haystack, $replace, $pos, strlen($needle));
}