How to add content to a string variable ?
Redefine variable
$param = "$param derp=herp";concatenating assignment operator
$param .= " derp=herp";Results
| Method | redefine | concatenating |
|---|---|---|
| Average in seconds for 1000000 calls | 27,7514 | 0.1209 |
| Memory usage in Mb for 100000 calls | 1.3284 | 1.3284 |
| Memory peak in Mb for 100000 calls | 2.2854 | 1.3285 |