Answers for "insert value to string every n position php"

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 "insert value to string every n position php"

Browse Popular Code Answers by Language