Write a PHP script to get the characters after the last '/' in an url.
Sample URL : 'http://www.example.com/5478631
<?php $my_url = 'http://www.example.com/5478631'; echo substr($my_url, strrpos($my_url, '/' )+1)."\n"; ?>
Sample Output:
5478631
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer