Substr from end of string php?
Posted
by
Gorostas
on Stack Overflow
See other posts from Stack Overflow
or by Gorostas
Published on 2013-10-29T09:30:12Z
Indexed on
2013/10/29
9:53 UTC
Read the original article
Hit count: 126
I have this kind of array, i will make it very simple to understand
$picture = ( 'artist2-1_thumb.jpg',
'artist2-2.jpg' ,
'artist2-3_thumb.jpg',
'artist2-4.jpg',
'artist2-5_thumb.jpg');
Now i want use substr to get new array that only have thumb, to have new array like this
$picturethumbs = ( 'artist2-1_thumb.jpg',
'artist2-3_thumb.jpg',
'artist2-5_thumb.jpg');
Can some substr but where to start?
© Stack Overflow or respective owner