majo.stitcher.io
majo.stitcher.io copied to clipboard
fix line ending for windows systems in board initialisation
Exploding the initial board string with PHP_EOL fails on windows systems because of the file's line separator
That's strange, the goal of PHP_EOL
is exactly to be cross-platform compatible:
PHP_EOL (string) The correct 'End Of Line' symbol for this platform.
https://www.php.net/manual/en/reserved.constants.php
\n
would only work on Linux. Maybe there's another issue at play? Unfortunately I cannot test on Windows 🤔