Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个文件列表(在数组中):
C:\Data\..\Users\admin\history.dat C:\\Users\admin\..\user\history.dat C:\Users\..\Data\debug.log
我怎样才能删除不必要的部分,所以列表将如下所示:
C:\Users\admin\history.dat C:\Users\user\history.dat C:\Data\debug.log
使用realpath()功能...
realpath()