Created
November 30, 2023 19:36
-
-
Save MasterHans/81aa6d5564c06c60a2dd26eefb0fed72 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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