How to remove some string from array
I have an array
 => SamplePictures/Blue hills.jpg
 => SamplePictures/Sunset.jpg
 => SamplePictures/Water lilies.jpg
 => SamplePictures/Winter.jpg
at every element of array, you can see the whole path.
I want to remove the Directory name before image like i only want
"blue hills.jpg","Sunset.jpg","Water lilies.jpg","Winter.jpg"
How can i do this
Please help in this regard