Mark Mark - 1 year ago 209
PHP Question

StringBuilder for PHP

Has someone made a

StringBuilder
implementation in PHP?

Answer Source

Why do you want to use a StringBuilder? Strings in php are mutable. Therefore performance is not an issue.

Just build string like this

$string = "start";
$string .= "appended string";
$string .= "appended string";
etc.
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download