Answers for "php add string inside string at position"

PHP
0

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.
Posted by: Guest on October-08-2021

Code answers related to "php add string inside string at position"

Browse Popular Code Answers by Language