7 lines
205 B
PHP
7 lines
205 B
PHP
<?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";
|
|
?>
|