Answers for "php insert variable into string after a specific 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 insert variable into string after a specific position"

Browse Popular Code Answers by Language