Hey folks,
I have got the following issue, my function appends code to a string $string ($string .= bla), but in the beginning the string is empty, so I get this error message
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: $string
Filename: libraries/file.php
Line Number: 90
Of course if I define the string in advance, like $string = NULL, the error would not occur, but but I though maybe there is a way to append to a string without the need to define the variable in advance / having an !empty check.
It should be just a one-line thing, I am looking for a slim code.
Thanks.