I am trying to rewrite a file with the contexts of an array but I want each item in the array to be on separate line. Is this possible to do?
I currently have the following:
$tempArray = ["xyz","zyx", "123"]
and you are fine.
implode takes a seperator and array-values then concates them like:
PHP_EOL is an predefined constant from php that defines "\n" on linux and "\r\n" on windows