110
93

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【PHP】PHP_EOL

Last updated at Posted at 2014-10-07

PHP_EOLは改行を表していて、環境によって自動で改行コードを切り替えてくれる。

OS 改行コード 改行コード文字
Windows CRLF \r\n
Linux,Unix,MACOS10 LF \n
使い方例
echo 'こんにちわ',PHP_EOL;

関係ないけど、echo って「,」区切りで複数出力できるらしい。

110
93
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
110
93

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?