I have a very long string which I am building (>1Meg), and I have cause to repeatedly modify varying bytes (characters) of the string. To avoid massive amounts of needless copying, I would like to do an in place modification of the string rather than using substr_replace, which will return a copy. Is there any way to accomplish this?
I.e. inPlaceModify ($SourceStr, $Position, $ReplacementChar)
Thanks,
Csaba