Home  >  Article  >  类库下载  >  Detailed usage of PHP_EOL constant

Detailed usage of PHP_EOL constant

高洛峰
高洛峰Original
2016-10-20 14:57:242638browse

PHP_EOL

Definition and usage


PHP can be replaced by PHP_EOL to improve the source code level portability of the code


This constant will return the response value according to the current environment


Line breaks

use n for unix series

rn for windows series

r for mac



If you want to know about other PHP constants, you can get all PHP constants through the following function

get_defined_constants();



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Related articles

See more