Created
May 14, 2015 15:48
-
-
Save light9/dfbad9fe8b3549b386ff to your computer and use it in GitHub Desktop.
parse url string
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
| $url = "https://mysite.com/test/1234?email=xyz4@test.com&testin=123"; | |
| $query_str = parse_url($url, PHP_URL_QUERY); | |
| parse_str($query_str, $query_params); | |
| print_r($query_params); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment