PHP String Replace: Index And Value – String Function

 
    <?
print(substr_replace("ABCDEFG", "-", 2, 3));
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.