如何在PHP中替换固定位置的字符?

use*_*729 4 php string

我想用4~8字符串替换字符串*,怎么做?

HelloWorld

=>

Hell****ld
Run Code Online (Sandbox Code Playgroud)