Skip to content
Advertisement

php array inserting line break when writing to text file

When parsing a text file full of variables (one on each line, no whitespace after), after processing, it’s being written to a $myfile with an additional line after.

Please checkout my code:

JavaScript

Here is what is spit out:

Note: 10K Run is the variable in question ($data)

JavaScript

Where it should be:

JavaScript

I’m not sure what is causing this, the code seems to work fine until I implement it into this generator.

Please advise or provide any suggestions, thank you very much!

Advertisement

Answer

Solved.

Changed

JavaScript

To

JavaScript

Thanks for the help!

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement