Home  >  Article  >  Backend Development  >  Analyzing the functions of the two constants DIRECTORY_SEPARATOR and PATH_SEPARATOR in PHP_PHP Tutorial

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

WBOY
WBOYOriginal
2016-07-21 15:04:25837browse

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,...
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