I have the following data:
Code: Select all
$referer = 'http://www.google.com.br/search?q=santa+claus+pictures&hl=pt&lr=&ie=UTF-8&oe=UTF-8&start=20&sa=N';Code: Select all
$referer = 'http://www.google.com/search?hl=ro&inlang=pl&ie=ISO-8859-2&q=santa+claus+pictures&btnG=Caut%E3&lr=';Code: Select all
$referer = 'http://www.google.com/search?hl=ro&inlang=pl&ie=ISO-8859-2&q=santa+claus+pictures';Code: Select all
$referer = 'http://www.google.com/search?q=santa+claus+pictures';Code: Select all
preg_match($pattern, $referer, $matches);
$keywords = $matchesї1];And is there a function of PHP to process the request strings into a more 'human friendly' form? Like replace + with space, and all those %XX characters with the corresponding alphanumeric data.
Thanks.