substr_replace()

It replace text within a portion of a string

Example

<?php
echo substr_replace(“php code”,”codez”,4);
?>

Output

php codez

Share