0

What is the best way to detect if a file has Unix style line endings (\r\n) programatically in PHP and if file has Unix line endings convert the file to Windows style line endings (\n)?

Enamul Hassan
  • 5,266
  • 23
  • 39
  • 56
devnull
  • 221
  • 1
  • 3
  • 7

0 Answers0