I have a list of files (in array):
C:\Data\..\Users\admin\history.dat
C:\\Users\admin\..\user\history.dat
C:\Users\..\Data\debug.log
How can I remove unnecessary parts, so the list will look like this:
C:\Users\admin\history.dat
C:\Users\user\history.dat
C:\Data\debug.log
Use the
realpath()function…