I have this Array (part of)
[result] => Array
(
[0] => Array
(
"speciesId": 267,
"source": "Beruf: Verzauberkunst (525)
Formel: Verzauberte Laterne",
)
)
If I echo out the source everything is in the same line. The gets ignored.
I want that after in the source the output comes in a new line. How is this possible?
Use double quote ("string") instead of single quote('string') when creating array element.
PHP only interprets escaped characters (with the exception of the escaped backslash \ and the escaped single quote \') when in double quotes (")
This works (results in a newline): " "
This does not result in a newline: ' '