you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 1 year ago (1 child)

PHP_EOL depends on your host system, it's \r\n on Windows.

I don't really want to use what Lerdorf intended, PHP <= 4 was horrible, 5.x was mainly getting slowly rid of nonsense and with 7.x PHP started its slow path of redemption and entered its modern era.

While Lerdorf's vision was great at that time for its intended use case, I wouldn't want to build anything serious in it.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 1 year ago

    It actually outputs "\n" on a Windows system, but modern Windows to recognise that as enough of a newline, nowadays.

    I don't really want to use what Lerdorf intended, PHP <= 4 was horrible

    Actually a great point!

  • source
  • parent