PHP string handling

Can someone explain to me how string processing is done in PHP. This is the same as with Java or any other method. Is there something like the Java class StringBuffer in PHP that will improve the performance of my code while the strings are handlling.

Enlighten it.

+4
source share
4 answers

Strings change in php. The only reason something like StringBuilder necessary in Java is because String immutable. You can use the concatenation operator ( . ) You want.

+2
source

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.

+1
source

Well, you can read all the lines in php doc that may answer some of your requests.

0
source

What problems do you expect for sure? PHP is much lighter than Java, and you should not expect any performance issues.

For your reference, you can read the lines in PHP: http://www.php.net/manual/en/book.strings.php

-1
source

All Articles