I want to replace with the 4~8 characters of a string with *,how to do it?
4~8
*
HelloWorld => Hell****ld
$var="HelloWorld"; $result=substr_replace($var, '****', 4,4 ) . "<br />\n";