Which string function do I use to insert a charcater into a string a specific point (not replace a character)?
Thanks
[man]substr[/man] Insert a string at the fifth character
$mybigstring=substr($mylittlestring,0,4).'New text here'.substr($mylittlestr,5);
thank you
Or do it all in one function, [man]substr_replace/man:
$string = substr_replace($string, 'New Text', 4, 0);