omg
omg

Reputation: 139872

how to write unified new line in PHP?

Obviously it's not "\r\n",which only fits windows,and will cause ^M on linux

Upvotes: 0

Views: 9197

Answers (2)

Matthew Flaschen
Matthew Flaschen

Reputation: 284816

PHP_EOL

Upvotes: 12

AvatarOfChronos
AvatarOfChronos

Reputation: 887

a new line in php is just "\n". should work on all platforms.

Upvotes: 2

Related Questions