How to remove some string from array
Posted: Thu Jan 25, 2007 7:53 am
I have an array
Array
(
[0] => SamplePictures/Blue hills.jpg
[1] => SamplePictures/Sunset.jpg
[2] => SamplePictures/Water lilies.jpg
[3] => 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
Eshban
Array
(
[0] => SamplePictures/Blue hills.jpg
[1] => SamplePictures/Sunset.jpg
[2] => SamplePictures/Water lilies.jpg
[3] => 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
Eshban