Skip to content

Instantly share code, notes, and snippets.

View chiqui3d's full-sized avatar
😊
Out sick

José Carlos chiqui3d

😊
Out sick
View GitHub Profile
// The referrer
$referrer = 'http://www.google.com/search?hl=en&q=learn+php+2&client=firefox';
// Parse the URL into an array
$parsed = parse_url( $referrer, PHP_URL_QUERY );
// Parse the query string into an array
parse_str( $parsed, $query );