2012-05-13 32 views
-1

刪除無用的部分我有文件的列表(數組):PHP:從文件名

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 

回答