Understanding PHP Code, Google Pagerank code
<p>I've found this code on the web, can't remember the exact source but the same code is on various sites.</p>

<pre><code>private function pageRankUrl($q) {
    $host='toolbarqueries.google.com';
    $seed = "Mining PageRank is AGAINST GOOGLE'S TERMS OF SERVICE. Yes, I'm talking to you, scammer.";
    $result = 0x01020345;
    $len = strlen($q);
    for ($i=0; $i&lt;$len; $i++) {
        $result ^= ord($seed{$i%strlen($seed)}) ^ ord($q{$i});
        $result = (($result &gt;&gt; 23) &amp; 0x1ff) | $result &lt;&lt; 9;
    }
    $ch=sprintf('8%x', $result);
    $url='http://%s/tbr?client=navclient-auto&amp;ch=%s&amp;features=Rank&amp;q=info:%s';
    $url=sprintf($url,$host,$ch,$q);
    return $url;
}
</code></pre>

<p>The code works fine, but I just want help understanding it. I need to understand what the $seed is, and also what's happening in the for loop.</p>
