Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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.
Source by coderwall.com #
 
PREVIOUS NEXT
Tagged: #php #add #string #string #position
ADD COMMENT
Topic
Name
1+6 =