Home >Backend Development >PHP Tutorial >Analyzing the functions of the two constants DIRECTORY_SEPARATOR and PATH_SEPARATOR in PHP_PHP Tutorial
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