Police

[insert_php]
$actual_link = “https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]”;
$keyword = “”;
if (strpos($actual_link, “/police-search/”) !== false)
{
$keywordPos = strrpos($actual_link, ‘/police-search’, -1);
if ($keywordPos !== false)
{
$keywordPos = $keywordPos + 15; // /police-search/
$urlArr = array();
$strLinks = substr($actual_link,$keywordPos);

$urlArr = explode(‘/’,$strLinks);
if (count($urlArr) >= 1)
{
$keyword = $urlArr[0];
$keyword = utf8_decode(urldecode($keyword));
}
}
}
[/insert_php]