I need to take a unique parameter from url generally appendened as last word of the url.
For example, I need to take 2220193
and 2220136
from the following urls:
- "http://www.break.com/index/strange-sea-creature-retreats-into-ocean-floor-2220193"
- "http://www.break.com/index/bully-picks-fight-with-sleeping-inmate-2220136"
Generally I use str_replace
to remove the static parameter "http://www.break.com/index/", but I don't know how to delete the textual url and get only the number.