Home > 类库下载 > PHP类库 > body text

Detailed usage of PHP_EOL constant

高洛峰
Release: 2016-10-20 14:57:24
Original
2633 people have browsed it

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();
Copy after login



Related labels:
php
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!