Analyzing the functions of the two constants DIRECTORY_SEPARATOR and PATH_SEPARATOR in PHP_PHP Tutorial

WBOY
Release: 2016-07-21 15:04:25
Original
891 people have browsed it

One is: DIRECTORY_SEPARATOR
DIRECTORY_SEPARATOR: path separator, on Linux it is '/' and on windows it is ''

One is: PATH_SEPARATOR
PATH_SEPARATOR: Use to include multiple paths. Under Windows, when you want to include multiple paths, you have to use ";" Open, but under Linux, they are separated by ":".
The use of these two constants can avoid compatibility issues on different platforms

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/327770.htmlTechArticleOne is: DIRECTORY_SEPARATOR DIRECTORY_SEPARATOR: path separator, on Linux it is '/' and on windows it is '' One is: PATH_SEPARATOR PATH_SEPARATOR: include multiple paths for use,...
Related labels:
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 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!