Skip to content

Instantly share code, notes, and snippets.

@MasterHans
Created November 30, 2023 19:36
Show Gist options
  • Save MasterHans/81aa6d5564c06c60a2dd26eefb0fed72 to your computer and use it in GitHub Desktop.
Save MasterHans/81aa6d5564c06c60a2dd26eefb0fed72 to your computer and use it in GitHub Desktop.
public function getKeyFromUrl($url)
{
$index = mb_strpos($url, '.com');
return mb_substr($url, $index+4);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment