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

DIRECTORY_SEPARATOR, PATH_SEPARATOR_PHP tutorial for PHP

WBOY
Release: 2016-07-13 17:14:27
Original
878 people have browsed it

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