<?php
$d=array();
$d['referrer']='http://www.google.com/search?q=Hello World&l=en&sp=1';
if(!empty($d['referrer'])) {
if(strrpos($d['referrer'],'q=') > 0) {
echo 'Search Term: <strong>' . substr($d['referrer'], 2+strrpos($d['referrer'],'q=')) . '</strong>';
}
}
?>
|