A
A
Alex Rave2020-05-12 19:43:15
PHP
Alex Rave, 2020-05-12 19:43:15

How to leave only the file name from the path?

The variable has a path, it can be different:
D:\folder\Base\artist - track.wav
D:\folder\Base\gold\artist, artist - track.mp3
D:\folder\Base\128\!artist, artist - track-.mp3
The task is to remove everything that is before the file name.
Tell me how to implement it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FanatPHP, 2020-05-12
@FanatPHP

Is it really that hard to write the title of your question in the address bar?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question