Strings Php

$new_string = substr_replace($old_string,$new_substring,$start);
$new_string = substr_replace($old_string,$new_substring,$start,$length);