Home  >  Article  >  Backend Development  >  DIRECTORY_SEPARATOR, PATH_SEPARATOR_PHP tutorial for PHP

DIRECTORY_SEPARATOR, PATH_SEPARATOR_PHP tutorial for PHP

WBOY
WBOYOriginal
2016-07-13 17:14:27814browse

PHP’s DIRECTORY_SEPARATOR, PATH_SEPARATOR friends in need can refer to it.

DIRECTORY_SEPARATOR: path separator, which is ‘/’ on Linux and ‘’ on windows

One is: PATH_SEPARATOR

PATH_SEPARATOR: Use to include multiple paths. Under Windows, when you want to include multiple paths, you have to use ";" to separate them, but under Linux, use ":" to separate them.

The use of these two constants can avoid compatibility issues on different platforms

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/628971.htmlTechArticlePHP’s DIRECTORY_SEPARATOR, PATH_SEPARATOR friends in need can refer to it. DIRECTORY_SEPARATOR: Path separator, on Linux it is / on Windows one is: PATH_SEPARATOR PATH_SEPA...
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