How can i get the certain value from the url using php?
$orginal=http://wwww.flickr.com/photos/username/1125323/in/photostream/lightbox/";
i want 1125323 from this url?
How can i get the certain value from the url using php?
$orginal=http://wwww.flickr.com/photos/username/1125323/in/photostream/lightbox/";
i want 1125323 from this url?
use following code:
<?php
$orginal="http://wwww.flickr.com/photos/username/1125323/in/photostream/lightbox/";
$url_data = explode("/",$orginal);
$id = $url_data[5];
?>