$uri = 'http://www.merchandisemarket.net/shop/s_images/aaa_small.gif'; $i = rindex($uri, '/') + 1; # Starting at the chara +cter one after the last slash, $filename = substr($uri, $i, length($uri)-$i); # get a substring with +the rest of the string
kelan
Yak it up with Fullscreen ChatterBox
In reply to Re: regex a url
by kelan
in thread regex a url
by andrew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |