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 Share this: Click to share on X (Opens in new window) X Click to share on Facebook (Opens in new window) Facebook Like Loading...