I want to be able to strip down a path for an image in Actinic using php. (This is part of some other php so a function to do this would be ideal)
If I have for example:
\photos\image1.jpg then I want just image1.jpg returned.
Also if if I have:
\photos\folder\image1.jpg then I want just image1.jpg returned.
And of course if the path is just:
image1.jpg then it should return just image1.jpg.
Basically everything to the left of the right most slash (and including the slashes) needs to be removed if existing.
Can anyone help please?
If I have for example:
\photos\image1.jpg then I want just image1.jpg returned.
Also if if I have:
\photos\folder\image1.jpg then I want just image1.jpg returned.
And of course if the path is just:
image1.jpg then it should return just image1.jpg.
Basically everything to the left of the right most slash (and including the slashes) needs to be removed if existing.
Can anyone help please?
Comment