Long integer to 16 character Hex for Google Reader sync
<p>Python Code </p>

<pre><code>h = "%s"%("0000000000000000%x"%(i&amp;0xffffffffffffffff))[16:]
</code></pre>

<p>I'd like to know how this would be done in PHP.</p>

<p>The application is for google reader syncronization.
An initial sync list comes with numeric values, but the actual article id hex.</p>

<p>Example Long Integer = <strong>8643979098044673995</strong></p>

<p>Example Google Reader Article ID = tag:google.com,2005:reader/item/<strong>77f5953120daafcb</strong></p>
