且构网

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

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

更新时间:2023-02-25 13:33:43

如果需要,可以使用PATH_SEPARATOR常量,然后使用DIRECTORY_SEPARATOR常量拆分路径. 参见 Directory Predefined Constants

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