php add string inside string at position

49

php add string inside string at position -

<?php

$string = 'I am happy today.';
$replacement = 'very ';

echo substr_replace($string, $replacement, 4, 0); // I am very happy today.

Comments

Submit
0 Comments