且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 PHP 中正确拆分 PATH 变量?

更新时间:2023-02-25 13:08:08

您可以使用 PATH_SEPARATOR 常量,然后根据需要使用 DIRECTORY_SEPARATOR 常量来分割路径.请参阅 目录预定义常量

You can use the PATH_SEPARATOR constant, then the DIRECTORY_SEPARATOR constant to split the path if needed. See Directory Predefined Constants