You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
<?php
|
|
$original_string = 'The brown fox';
|
|
$string_to_insert ='quick';
|
|
$insert_pos = 4;
|
|
$new_string = substr_replace($original_string, $string_to_insert.' ', $insert_pos, 0);
|
|
echo $new_string."\n";
|
|
?>
|