Home > Article > Backend Development > DIRECTORY_SEPARATOR, PATH_SEPARATOR_PHP tutorial for PHP
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