Isolating part of a URL with PHP
-
Hi,
I have a custom field that will include a link similar to this:
http://farm3.static.flickr.com/2085/2177060015_258bcfaff9_m.jpgThe variable will be:
$url = http://farm3.static.flickr.com/2085/2177060015_258bcfaff9_m.jpgI need to somehow isolate the following part and put it in a variable of its own:
http://farm3.static.flickr.com/2085/*2177060015*_258bcfaff9_m.jpgso I would end up with something like this:
$var = ‘2177060015’Is there any way to do that?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Isolating part of a URL with PHP’ is closed to new replies.