You can use strrpos()
to find the last occurence of one string in another:
substr($somestring, strrpos($somestring, "https://stackoverflow.com/") + 1)
You can use strrpos()
to find the last occurence of one string in another:
substr($somestring, strrpos($somestring, "https://stackoverflow.com/") + 1)