Strings are processed in PHP without any special problems or the need for additional libraries (if you do not want to use things like UTF-8 encoding).
PHP native strings are modified in the same way as the StringBuffer class.
manual is a good place to start.
source share