PHP substr_replace() May 23, 2012 Pramod T P It replace text within a portion of a string Example <?php echo substr_replace(“php code”,”codez”,4); ?> Output php codez